fix viscosity

Dear lammps comunity,

I have downloaded the latest version of the code lammps-28Jun14. However, I do not find fix_viscosity.cpp and fix_viscosity.h files in this distribution. Does anyone know why it as removed?

I tried to add these files from some of the previous versions of lammps. However, the compilation fails:

-bash-3.2$ make serial
make[1]: Entering directory `/s/ls2/home/users/fomin314/lammps-28Jun14/src/Obj_serial'
g++ -O -DLAMMPS_GZIP -I../STUBS -c ../fix_viscosity.cpp
../fix_viscosity.cpp:30:1: warning: "MIN" redefined
In file included from ../fix.h:17,
                 from ../fix_viscosity.h:17,
                 from ../fix_viscosity.cpp:18:
../pointers.h:34:1: warning: this is the location of the previous definition
../fix_viscosity.cpp:31:1: warning: "MAX" redefined
../pointers.h:35:1: warning: this is the location of the previous definition
../fix_viscosity.cpp: In constructor Б─≤LAMMPS_NS::FixViscosity::FixViscosity(LAMMPS_NS::LAMMPS*, int, char**)Б─≥:
../fix_viscosity.cpp:38: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:43: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:46: error: Б─≤scalar_vector_freqБ─≥ was not declared in this scope
../fix_viscosity.cpp:52: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:57: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:60: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:70: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:72: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [42])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:75: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:79: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [45])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:81: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp: In member function Б─≤virtual int LAMMPS_NS::FixViscosity::setmask()Б─≥:
../fix_viscosity.cpp:109: error: Б─≤END_OF_STEPБ─≥ was not declared in this scope
../fix_viscosity.cpp: In member function Б─≤virtual void LAMMPS_NS::FixViscosity::init()Б─≥:
../fix_viscosity.cpp:124: error: no matching function for call to Б─≤LAMMPS_NS::Error::warning(const char [43])Б─≥
../error.h:31: note: candidates are: void LAMMPS_NS::Error::warning(const char*, int, const char*, int)
make[1]: *** [fix_viscosity.o] Error 1
make[1]: Leaving directory `/s/ls2/home/users/fomin314/lammps-28Jun14/src/Obj_serial'
make: *** [serial] Error 2

Withought these files everything is ok.

Are there any problems with fix_viscosity in the newest distributions? Can it be returned?

Thank you in advance for help.

Kind regards,
Yury Fomin

Dear lammps comunity,

I have downloaded the latest version of the code lammps-28Jun14. However, I do not find fix_viscosity.cpp and fix_viscosity.h files in this distribution. Does anyone know why it as removed?

it was not removed. it is part of the MISC package. please check the
online documentation.

I tried to add these files from some of the previous versions of lammps. However, the compilation fails:

-bash-3.2$ make serial
make[1]: Entering directory `/s/ls2/home/users/fomin314/lammps-28Jun14/src/Obj_serial'
g++ -O -DLAMMPS_GZIP -I../STUBS -c ../fix_viscosity.cpp
../fix_viscosity.cpp:30:1: warning: "MIN" redefined
In file included from ../fix.h:17,
                 from ../fix_viscosity.h:17,
                 from ../fix_viscosity.cpp:18:
../pointers.h:34:1: warning: this is the location of the previous definition
../fix_viscosity.cpp:31:1: warning: "MAX" redefined
../pointers.h:35:1: warning: this is the location of the previous definition
../fix_viscosity.cpp: In constructor Б─≤LAMMPS_NS::FixViscosity::FixViscosity(LAMMPS_NS::LAMMPS*, int, char**)Б─≥:
../fix_viscosity.cpp:38: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:43: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:46: error: Б─≤scalar_vector_freqБ─≥ was not declared in this scope
../fix_viscosity.cpp:52: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:57: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:60: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:70: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:72: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [42])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:75: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:79: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [45])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp:81: error: no matching function for call to Б─≤LAMMPS_NS::Error::all(const char [30])Б─≥
../error.h:29: note: candidates are: void LAMMPS_NS::Error::all(const char*, int, const char*)
../fix_viscosity.cpp: In member function Б─≤virtual int LAMMPS_NS::FixViscosity::setmask()Б─≥:
../fix_viscosity.cpp:109: error: Б─≤END_OF_STEPБ─≥ was not declared in this scope
../fix_viscosity.cpp: In member function Б─≤virtual void LAMMPS_NS::FixViscosity::init()Б─≥:
../fix_viscosity.cpp:124: error: no matching function for call to Б─≤LAMMPS_NS::Error::warning(const char [43])Б─≥
../error.h:31: note: candidates are: void LAMMPS_NS::Error::warning(const char*, int, const char*, int)
make[1]: *** [fix_viscosity.o] Error 1
make[1]: Leaving directory `/s/ls2/home/users/fomin314/lammps-28Jun14/src/Obj_serial'
make: *** [serial] Error 2

Withought these files everything is ok.

you cannot move files between versions, when the internal programming
interface has changed.

Are there any problems with fix_viscosity in the newest distributions? Can it be returned?

there is not problem, except that you need to search better. :wink:

axel.

Dear Axel,

Thank you very much for your reply. I've found it and sucsessfully compiled.

Kind regards,
Yury Fomin

Dear Axel,

Thank you very much for your reply. I've found it and sucsessfully compiled.

Kind regards,
Yury Fomin