Tddft mxvec20.patch cannot be applied


Forum Vet
When patch -p0 < Tddft_mvxec20.patch is typed in a MAC bash, the following appears

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:


|Index: QA/tests/tddft_h2o_mxvc20/tddft_h2o_mxvc20.nw
|=================================================================== |--- QA/tests/tddft_h2o_mxvc20/tddft_h2o_mxvc20.nw (revision 27754)
|+++ QA/tests/tddft_h2o_mxvc20/tddft_h2o_mxvc20.nw (revision 27755)

How to choose and what command should be applied?

Forum Vet
The instructions on the webpage were not correct
You need to cd into $NWCHEM_TOP (get rid of "src")

cd $NWCHEM_TOP
wget http://nwchemgit.github.io/images/Tddft_mxvec20.patch.gz
gzip -d Tddft_mxvec20.patch.gz
patch -p0 < Tddft_mxvec20.patch

Forum Vet
Dear Edoapra
 Thanks a lot.
It works, and four files have been patched.


Forum >> NWChem's corner >> Running NWChem