Commit acca74ec authored by jclamber's avatar jclamber

fix bug on Cm component

git-svn-id: http://svn.oamp.fr/repos/unsio/trunk@132 ce2cc22f-6084-46ce-a062-084b172ee5dc
parent a08c5ca9
......@@ -6,5 +6,7 @@ nemocvs:
tar :
cd ..;tar czhvf unsio/unsio-`date "+%d%b-%Y-%H.%M"`.tar.gz `ls unsio/src/*.{f,F,cc,h} unsio/test_src/*.{f,F,cc,h} unsio/CMakeLists.txt unsio/cmake/*.cmake unsio/doc/*.{odp,pdf,txt} unsio/INSTALL unsio/mmakefile unsio/man/man3/* unsio/3rdparty/nemolight/build/CMakeLists.txt unsio/3rdparty/nemolight/src/*.{c,h} unsio/3rdparty/nemolight/src/inc/*.{c,h} unsio/3rdparty/nemolight/src/inc/snapshot/*.{c,h} unsio/3rdparty/nemolight/src/fortran_old_gcc/*.{c,h} 2> /dev/null`
devel:
cd template; tar czhvf ../uns_devel.tar.gz `ls uns_devel/cmake/*.cmake uns_devel/README uns_devel/CMakeLists.txt uns_devel/src/*.{c,cc,F} uns_devel/lib/src/*.{c,cc,F}`
#
......@@ -198,7 +198,7 @@ typedef struct particle_data_lite
float * getIm(int & n) { n=header.npartTotal[4]; return im;}
float * getCm(int & n) { n=1*(header.npartTotal[0]+header.npartTotal[4]); return cm;}
float * getCmGas(int & n) { n=1*(header.npartTotal[0]); return cm;}
float * getCmStars(int & n) { n=1*(header.npartTotal[4]); return cm+header.npartTotal[0]*1;}
float * getCmStars(int & n) { n=1*(header.npartTotal[4]); return ((cm==NULL)?cm:cm+header.npartTotal[0]*1);}
//fortran offset record length
int frecord_offset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment