Commit adcf15b4 authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles
Browse files

add assert to trap error

parent b34e9a25
Pipeline #292 skipped
......@@ -332,7 +332,10 @@ template <class T> int CAmr::loadData(uns::CParticles<T> * particles,
for (int ind=0;ind<twotondim;ind++) {
for (int ivar=0; ivar<nvarg; ivar++) {
if (j==icpu&& ngrida>0) {
grav.readDataBlock((char *) &varg[ivar*ngrida*twotondim+ind*ngrida]);
int n=grav.readDataBlock((char *) &varg[ivar*ngrida*twotondim+ind*ngrida]);
//std::cerr << "n="<<n<<"\n";
else grav.skipBlock();
Supports Markdown
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