small tweaks
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
CXX=mpicxx
|
||||
CXXFLAGS=-I../../src -Wall -O3 -fPIC -I../../src/USER-OMP -fopenmp
|
||||
CXXFLAGS=-I../../src -Wall -Wextra -O3 -fPIC -I../../src/USER-OMP -fopenmp
|
||||
LD=$(CXX) -shared -rdynamic -fopenmp
|
||||
|
||||
morse2plugin.so: morse2plugin.o pair_morse2.o pair_morse2_omp.o
|
||||
|
||||
@ -58,9 +58,8 @@ namespace LAMMPS_NS
|
||||
|
||||
void *initfunc = dlsym(dso,"lammpsplugin_init");
|
||||
if (initfunc == nullptr) {
|
||||
#ifndef WIN32
|
||||
dlclose(dso);
|
||||
#endif
|
||||
|
||||
if (me == 0)
|
||||
utils::logmesg(lmp,fmt::format("Plugin symbol lookup failure in "
|
||||
"file {}\n",file));
|
||||
@ -182,7 +181,7 @@ namespace LAMMPS_NS
|
||||
if (idx < 0) {
|
||||
if (me == 0)
|
||||
utils::logmesg(lmp,fmt::format("Ignoring unload of {} style {}: not "
|
||||
"loaded from a plugin", style, name));
|
||||
"loaded from a plugin\n", style, name));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user