BUG: Test-fieldMapping: was always inflating

This commit is contained in:
mattijs
2013-09-19 11:34:09 +01:00
parent 4d68ee8226
commit f101836853
2 changed files with 11 additions and 10 deletions

View File

@ -164,7 +164,7 @@ int main(int argc, char *argv[])
// Remove face // Remove face
label candidateFaceI = rndGen.integer(0, mesh.nInternalFaces()-1); label candidateFaceI = rndGen.integer(0, mesh.nInternalFaces()-1);
Info<< "Wanting to delete face " << mesh.faceCentres()[candidateFaceI] Info<< "Wanting to delete face " << mesh.faceCentres()[candidateFaceI]
<< endl; << nl << endl;
labelList candidates(1, candidateFaceI); labelList candidates(1, candidateFaceI);
@ -195,16 +195,16 @@ int main(int argc, char *argv[])
); );
// Change mesh and inflate // Change mesh and inflate
Info<< "Actually changing mesh" << endl; Info<< "Actually changing mesh" << nl << endl;
autoPtr<mapPolyMesh> morphMap = meshMod.changeMesh(mesh, inflate); autoPtr<mapPolyMesh> morphMap = meshMod.changeMesh(mesh, inflate);
Info<< "Mapping fields" << endl; Info<< "Mapping fields" << nl << endl;
mesh.updateMesh(morphMap); mesh.updateMesh(morphMap);
// Move mesh (since morphing does not do this) // Move mesh (since morphing does not do this)
if (morphMap().hasMotionPoints()) if (morphMap().hasMotionPoints())
{ {
Info<< "Moving mesh" << endl; Info<< "Moving mesh" << nl << endl;
mesh.movePoints(morphMap().preMotionPoints()); mesh.movePoints(morphMap().preMotionPoints());
} }
@ -212,7 +212,7 @@ int main(int argc, char *argv[])
faceRemover.updateMesh(morphMap); faceRemover.updateMesh(morphMap);
Info<< "Writing fields" << endl; Info<< "Writing fields" << nl << endl;
runTime.write(); runTime.write();
@ -245,7 +245,7 @@ int main(int argc, char *argv[])
} }
else else
{ {
Info<< "Volume check OK" << endl; Info<< "Volume check OK" << nl << endl;
} }
} }
@ -268,7 +268,7 @@ int main(int argc, char *argv[])
} }
else else
{ {
Info<< "Uniform field mapping check OK" << endl; Info<< "Uniform field mapping check OK" << nl << endl;
} }
} }
@ -292,7 +292,7 @@ int main(int argc, char *argv[])
} }
else else
{ {
Info<< "Linear profile mapping check OK" << endl; Info<< "Linear profile mapping check OK" << nl << endl;
} }
} }
@ -315,7 +315,8 @@ int main(int argc, char *argv[])
} }
else else
{ {
Info<< "Uniform surfaceScalarField mapping check OK" << endl; Info<< "Uniform surfaceScalarField mapping check OK" << nl
<< endl;
} }
} }

View File

@ -17,7 +17,7 @@ runApplication $application true
mv "log.$application" "log.$application-inflate" mv "log.$application" "log.$application-inflate"
# Run without inflation # Run without inflation
runApplication $application true runApplication $application false
# ----------------------------------------------------------------- end-of-file # ----------------------------------------------------------------- end-of-file