Skip to content

Reply To: load coarse mesh data to a fine mesh

Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.

Forums OpenLB General Topics load coarse mesh data to a fine mesh Reply To: load coarse mesh data to a fine mesh

#10975
nipinl
Participant

Hi Adrain,
First of all, thank you for helping me out here.
When run in serial, the current code works almost correct, just that it did not copy at x=xMax plane and at the edge (xMin,yMin) https://www.dropbox.com/scl/fi/dcyze2b6b745c389vldld/serialCopy.png?rlkey=wobmt9paxqqc0awidnfannffn&st=pjacrhww&dl=0

However, when using AnalyticalFfromSuperF3D<T,T> uAnalytical(coarseU, /*communicateToAll =*/ false, /*communicateOverlap =*/ true); for serial run, it fails citing “double free or corruption (!prev) tri0570:1320121] *** Process received signal *** ”

Regarding the decomposition, I use

CuboidDecomposition3D<T> cuboidDecompositionCoarse(
    cuboidCoarse, converterCoarse.getPhysDeltaX(), noOfCuboids);
CuboidDecomposition3D<T> cuboidDecompositionFine(
    cuboidFine, converterFine.getPhysDeltaX(), noOfCuboids);

I was wondering, how can we use same decomposition for both coarse and fine, since N and PhysDx are different?