Thanks.
But next problem.
Ubuntu 10.04, gcc 4.4.3 (last)
0) get last lammps pack
1) try make g++ ATC
[email protected]...:~/lammps-13Dec11/lib/atc$ make -f Makefile.g++
g++ -O -g -I../../src -DMPICH_IGNORE_CXX_SEEK -c ATC_HardyKernel.cpp
..
/home/maks/lammps-9Nov11/lib/atc/LammpsInterface.h:68: undefined reference to `MPI_Allreduce(void*, void*, int, int, int, int)'
/home/maks/lammps-9Nov11/lib/atc/LammpsInterface.h:69: undefined reference to `MPI_Barrier(int)'
collect2: ld returned 1 exit status
make[1]: *** [../lmp_openmpi] Ошибка(error) 1
make[1]: Выход из каталога `/home/maks/lammps-9Nov11/src/Obj_openmpi'
make: *** [openmpi] Ошибка 2
2) try serial
[email protected]...:~/lammps-13Dec11/lib/atc$ make -f Makefile.serial
g++ -O -g -I../../src -I../../src/STUBS -c ATC_HardyKernel.cpp
g++ -O -g -I../../src -I../../src/STUBS -c ATC_Transfer.cpp
In file included from PhysicsModel.h:18,
from ATC_Transfer.h:12,
from ATC_Transfer.cpp:2:
Array2D.h: In member function ‘void Array2D<T>::write_restart(FILE*) const’:
Array2D.h:143: error: there are no arguments to ‘fwrite’ that depend on a template parameter, so a declaration of ‘fwrite’ must be available
Array2D.h:143: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
Array2D.h:144: error: there are no arguments to ‘fwrite’ that depend on a template parameter, so a declaration of ‘fwrite’ must be available
make: *** [ATC_Transfer.o] Ошибка 1
[email protected]...:~/lammps-13Dec11/lib/atc$
3) do this with -fpermissive. It's done.
4) make yes-user-atc
5) make openmpi
verlet.o write_restart.o -latc -lfftw -lblas -llapack -lstdc++ -o ../lmp_openmpi
/usr/bin/ld: cannot find -lblas
collect2: ld returned 1 exit status
6) do this:
user-atc_SYSINC =
user-atc_SYSLIB = -llapack -lblas -lgfortran #default was -lblas -llapack
user-atc_SYSPATH = -L/home/maks/lapack -L/home/maks/BLAS
but error as first:
..
verlet.o write_restart.o -latc -lfftw -llapack -lblas -lgfortran -lstdc++ -o ../lmp_openmpi
...
/home/maks/lammps-9Nov11/lib/atc/LammpsInterface.h:69: undefined reference to `MPI_Barrier(int)'
/home/maks/lammps-9Nov11/lib/atc/LammpsInterface.h:68: undefined reference to `MPI_Allreduce(void*, void*, int, int, int, int)'
/home/maks/lammps-9Nov11/lib/atc/LammpsInterface.h:69: undefined reference to `MPI_Barrier(int)'
/home/maks/lammps-9Nov11/lib/atc/LammpsInterface.h:68: undefined reference to `MPI_Allreduce(void*, void*, int, int, int, int)'
/home/maks/lammps-9Nov11/lib/atc/LammpsInterface.h:69: undefined reference to `MPI_Barrier(int)'
collect2: ld returned 1 exit status
make[1]: *** [../lmp_openmpi] Ошибка 1
14.12.2011, 22:08, "Templeton, Jeremy Alan" <[email protected]...>: