an error to compile the atc package of the last version.

Dear Lammps Users,

I just did “svn update” that suppose I got the last version. I did re-compile under /src and get errors with atc. Then I go back to /lib/atc and recompile the atc package, but get the same error information. Maybe some classes in lammps.h or others were missed, I guess. Many thanks for your help.

After doing “make no-USER-ATC”, the compilation was going very well.

[charlie@…2538… atc]$ make -f Makefile.icc
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ATC_HardyKernel.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ATC_Transfer.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ATC_TransferHardy.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ATC_TransferThermal.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ATC_TransferUtility.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c AtomicRegulator.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ElasticTimeIntegrator.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ElectronFlux.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ElectronHeatCapacity.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ElectronHeatFlux.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ElectronPhononExchange.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ExtrinsicModel.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ExtrinsicModelTwoTemperature.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c FE_Element.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c FE_Engine.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c FE_Mesh.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c FieldEulerIntegrator.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c ImplicitSolveOperator.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c Kinetostat.cpp
icc -O -g -I/usr/local/mpich2/1.2.1p1/include -I…/…/src -DMPICH_IGNORE_CXX_SEEK -c LammpsInterface.cpp
LammpsInterface.cpp(401): error: class “LAMMPS_NS::Memory” has no member “create_1d_double_array”
return lammps_->memory->create_1d_double_array(nlo, nhi, name);

LammpsInterface.cpp(405): error: class “LAMMPS_NS::Memory” has no member “destroy_1d_double_array”
lammps_->memory->destroy_1d_double_array(d, i);

LammpsInterface.cpp(409): error: class “LAMMPS_NS::Memory” has no member “create_2d_double_array”
return lammps_->memory->create_2d_double_array(n1, n2, name);

LammpsInterface.cpp(413): error: class “LAMMPS_NS::Memory” has no member “destroy_2d_double_array”

LammpsInterface.cpp(421): error: class “LAMMPS_NS::Memory” has no member “grow_2d_double_array”
return lammps_->memory->grow_2d_double_array(array, n1, n2, name);

LammpsInterface.cpp(425): error: class “LAMMPS_NS::Memory” has no member “create_2d_int_array”
return lammps_->memory->create_2d_int_array(n1, n2, name);

LammpsInterface.cpp(429): error: class “LAMMPS_NS::Memory” has no member “destroy_2d_int_array”

LammpsInterface.cpp(433): error: class “LAMMPS_NS::Memory” has no member “grow_2d_int_array”
return lammps_->memory->grow_2d_int_array(array, n1, n2, name);

compilation aborted for LammpsInterface.cpp (code 2)
make: *** [LammpsInterface.o] Error 2

Hi Hongyi, Steven recently changed the way memory is handled in LAMMPS and we are in the process of updating our package to conform to the latest release (amongst many other things). Expect an updated version in the next few weeks, and we will post to the user group when it's ready. If you need it sooner, your best bet is to grab an older version (ca. 2009 is best). If for some reason you can't, I can send you a quick patch, but there may be other issues you encounter as well.

Dear Jermy,
Thanks for your reply. Glad to know it is not an unexpected error. I will get an old version for my recently temporary use.

Best regards,