BUG: copy construct of faSchemes/faSolution ignored (see !605)

- the faMesh/fvMesh copy constructors were using the readOption from
  the base-mesh schemes/solution instead of copying their contents.

  This would not really affect fvMesh (since it has its own IOobject
  for the constructor), but did affect faMesh. However, the problem
  only shows up with collated + redistribute, since that is where
  the ranks can be doing uncoordinated IO.

  Only consider as a bug for recent develop since previous versions
  had other problems with collated+redistribute with finite-area
  anyhow.
This commit is contained in:
Mark Olesen
2023-12-11 19:24:18 +01:00
parent 5b177b44f3
commit 56a0f80863
9 changed files with 225 additions and 29 deletions

View File

@ -3,6 +3,9 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
unset fileHandler
fileHandler="-fileHandler collated"
restore0Dir
runApplication blockMesh
@ -15,19 +18,20 @@ then
runApplication makeFaMesh
runApplication decomposePar
runApplication decomposePar $fileHandler
else
# Additional steps (to exercise some functionality)
runParallel $decompDict -s decompose redistributePar -decompose
runParallel $decompDict -s decompose redistributePar -decompose \
-no-finite-area $fileHandler
runParallel $decompDict makeFaMesh
runParallel $decompDict makeFaMesh $fileHandler
runParallel -s redistribute redistributePar -overwrite
runParallel -s redistribute redistributePar -overwrite $fileHandler
fi
runParallel $(getApplication)
runParallel $(getApplication) $fileHandler
#------------------------------------------------------------------------------