[lammps-users] Hi,I've a problem when building the ATC library

Dear All:

I’ve a big problem when I was trying to make Lammps. It showed:

fix_atc.h(29): catastrophic error: could not open source file “ATC_Transfer.h”
#include “ATC_Transfer.h”
^

make[1]: *** [fix_atc.d] Error 4
make[1]: Leaving directory `/ifs/ibfs1/home/lyang/lammps-20Feb10/src/Obj_lewis’
make: *** [lewis] Error 2

Then I tried to build ATC library from the path: lib/atc

But I had problem again:

[lyang@…1752… atc]$ make -f Makefile.g++
g++ -O -g -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ATC_HardyKernel.cpp
In file included from ATC_HardyKernel.h:5,
from ATC_HardyKernel.cpp:1:
LammpsInterface.h:6:17: mpi.h: No such file or directory
In file included from LammpsInterface.h:7,
from ATC_HardyKernel.h:5,
from ATC_HardyKernel.cpp:1:
…/…/src/lammps.h:17:17: mpi.h: No such file or directory
In file included from LammpsInterface.h:7,
from ATC_HardyKernel.h:5,
from ATC_HardyKernel.cpp:1:
…/…/src/lammps.h:41: error: MPI_Comm' does not name a type ../../src/lammps.h:46: error: MPI_Comm’ has not been declared
…/…/src/lammps.h:46: error: ISO C++ forbids declaration of parameter' with no type In file included from ATC_HardyKernel.h:5, from ATC_HardyKernel.cpp:1: LammpsInterface.h:63: error: MPI_Comm’ does not name a type
LammpsInterface.h: In member function void ATC::LammpsInterface::set_lammps(LAMMPS_NS::LAMMPS*)': LammpsInterface.h:58: error: 'class LAMMPS_NS::LAMMPS' has no member named 'world' LammpsInterface.h:58: error: MPI_Comm_rank’ was not declared in this scope
LammpsInterface.h: In member function void ATC::LammpsInterface::allsum(double*, double*, int)': LammpsInterface.h:67: error: MPI_DOUBLE’ was not declared in this scope
LammpsInterface.h:67: error: MPI_SUM' was not declared in this scope LammpsInterface.h:68: error: 'class LAMMPS_NS::LAMMPS' has no member named 'world' LammpsInterface.h:68: error: MPI_Allreduce’ was not declared in this scope
LammpsInterface.h:69: error: ‘class LAMMPS_NS::LAMMPS’ has no member named ‘world’
LammpsInterface.h:69: error: MPI_Barrier' was not declared in this scope LammpsInterface.h: In member function void ATC::LammpsInterface::int_allsum(int*, int*, int)’:
LammpsInterface.h:74: error: MPI_INT' was not declared in this scope LammpsInterface.h:74: error: MPI_SUM’ was not declared in this scope
LammpsInterface.h:75: error: ‘class LAMMPS_NS::LAMMPS’ has no member named ‘world’
LammpsInterface.h:75: error: MPI_Allreduce' was not declared in this scope LammpsInterface.h:76: error: 'class LAMMPS_NS::LAMMPS' has no member named 'world' LammpsInterface.h:76: error: MPI_Barrier’ was not declared in this scope
LammpsInterface.h: In member function void ATC::LammpsInterface::allmax(double*, double*, int)': LammpsInterface.h:81: error: MPI_DOUBLE’ was not declared in this scope
LammpsInterface.h:81: error: MPI_MAX' was not declared in this scope LammpsInterface.h:82: error: 'class LAMMPS_NS::LAMMPS' has no member named 'world' LammpsInterface.h:82: error: MPI_Allreduce’ was not declared in this scope
LammpsInterface.h:83: error: ‘class LAMMPS_NS::LAMMPS’ has no member named ‘world’
LammpsInterface.h:83: error: MPI_Barrier' was not declared in this scope LammpsInterface.h: In member function void ATC::LammpsInterface::int_allmax(int*, int*, int)’:
LammpsInterface.h:88: error: MPI_INT' was not declared in this scope LammpsInterface.h:88: error: MPI_MAX’ was not declared in this scope
LammpsInterface.h:89: error: ‘class LAMMPS_NS::LAMMPS’ has no member named ‘world’
LammpsInterface.h:89: error: MPI_Allreduce' was not declared in this scope LammpsInterface.h:90: error: 'class LAMMPS_NS::LAMMPS' has no member named 'world' LammpsInterface.h:90: error: MPI_Barrier’ was not declared in this scope
LammpsInterface.h: In member function void ATC::LammpsInterface::logical_or(int*, int*, int)': LammpsInterface.h:95: error: MPI_INT’ was not declared in this scope
LammpsInterface.h:95: error: MPI_LOR' was not declared in this scope LammpsInterface.h:96: error: 'class LAMMPS_NS::LAMMPS' has no member named 'world' LammpsInterface.h:96: error: MPI_Allreduce’ was not declared in this scope
LammpsInterface.h:97: error: ‘class LAMMPS_NS::LAMMPS’ has no member named ‘world’
LammpsInterface.h:97: error: `MPI_Barrier’ was not declared in this scope
make: *** [ATC_HardyKernel.o] Error 1

Anyway, please help me. I took me several days to make Lammps. It drives me crazy.

Thanks so much!

Nick Yang