When i use the fix style ‘wall/reflect/stochastic’ in LAMMPS after installing the EXTRA-FIX package, the command is working good. BUT when i try to use the same command in the FORTRAN using lammps as a library, i got the error.
ERROR: Unrecognized fix style ‘wall/reflect/stochastic’ is part of the EXTRA-FIX package which is not enabled in this LAMMPS binary. (src/modify.cpp:917)
Last command: fix ywalls flow wall/reflect/stochastic maxwell 345533 ylo EDGE ${temp_hot} 0.0 0.0 0.0 0.421
I can not understand, why i am having this error after installing the said package. On the other hand, it is working in the pure LAMMPS.
Yes, i build in the same src/builld folder. One possibility may be to try to install again in new folder with EXTRA-FIX package and remove the previous version/folder.
0000000001c8c360 t LAMMPS_NS::Fix* style_creator<LAMMPS_NS::Fix, LAMMPS_NS::FixWallReflectStochastic>(LAMMPS_NS::LAMMPS*, int, char**)
0000000001cadcca t LAMMPS_NS::Fix* style_creator<LAMMPS_NS::Fix, LAMMPS_NS::FixWallReflectStochastic>(LAMMPS_NS::LAMMPS*, int, char**) [clone .cold]
00000000021608c0 T LAMMPS_NS::FixWallReflectStochastic::wall_particle(int, int, double)
0000000002160f80 T LAMMPS_NS::FixWallReflectStochastic::FixWallReflectStochastic(LAMMPS_NS::LAMMPS*, int, char**)
0000000002160f80 T LAMMPS_NS::FixWallReflectStochastic::FixWallReflectStochastic(LAMMPS_NS::LAMMPS*, int, char**)
00000000021623ba t LAMMPS_NS::FixWallReflectStochastic::FixWallReflectStochastic(LAMMPS_NS::LAMMPS*, int, char**) [clone .cold]
0000000002160890 T LAMMPS_NS::FixWallReflectStochastic::~FixWallReflectStochastic()
00000000021623a4 t LAMMPS_NS::FixWallReflectStochastic::~FixWallReflectStochastic() [clone .cold]
0000000002160850 T LAMMPS_NS::FixWallReflectStochastic::~FixWallReflectStochastic()
0000000002160850 T LAMMPS_NS::FixWallReflectStochastic::~FixWallReflectStochastic()
0000000002162394 t LAMMPS_NS::FixWallReflectStochastic::~FixWallReflectStochastic() [clone .cold]
00000000052d1308 V typeinfo for LAMMPS_NS::FixWallReflectStochastic
0000000001357bc0 V typeinfo name for LAMMPS_NS::FixWallReflectStochastic
00000000052d1320 V vtable for LAMMPS_NS::FixWallReflectStochastic
Problem was resolved. Thank you so much for your help.
I searched in my Build Folder and found the files that you mention “liblammps_yes.a” and i complied with this library and now the code is running good.