ERROR: Unable to calculate region volume - are you operating on a 2d region?

msbentley's picture
Submitted by msbentley on Tue, 02/12/2013 - 10:09

Hi all,

I have a script that works perfectly on a single core (i.e. no MPI), but when I run in MPI it runs fine for a while, and then after a region definition gives an error:

ERROR: Unable to calculate region volume - are you operating on a 2d region? (region.cpp:586)

Any clues if this is a bug, or a problem in my script? In the source this comes from:

MPI_Sum_Scalar(n_in_global,n_in_global_all,world);
if(n_in_global_all == 0)
error->all(FLERR,"Unable to calculate region volume - are you operating on a 2d region?");

Thanks!!

Mark

ckloss's picture

ckloss | Thu, 02/14/2013 - 09:24

Hi Mark,

there is a Monte Carlo run calculating the volume of regions. If it fails the error pops up. Maybe the region is very small compared to the simulation box? Could you please post the script?

Thanks!

Cheers,
Christoph

msbentley's picture

msbentley | Tue, 03/12/2013 - 09:40

Too small region - OK, this could be it - that the region is big enough when running with a single CPU, but when running with spatial domain decomposition the individual fill regions are smaller than the threshold. I'll check back on the script and post if I still can't get it working - thanks!