File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -789,20 +789,13 @@ void preciceAdapter::Adapter::reloadMeshPoints()
789
789
return ;
790
790
}
791
791
792
- // Invalidate on-demand fields
793
- // fvMesh::updateGeomNotOldVol()
794
- // (void)mesh_.V();
795
- (void )mesh_ .Sf ();
796
- (void )mesh_ .magSf ();
797
- (void )mesh_ .C ();
798
- (void )mesh_ .Cf ();
799
-
800
- // fvMesh.movePoints overwrites the pointer to the oldPoints
801
- const_cast < pointField & > (mesh_ .points ()) = * meshOldPoints_ ;
802
-
803
792
// Reload mesh points
804
793
const_cast < Foam ::fvMesh & > (mesh_ ).movePoints (* meshPoints_ );
805
794
795
+ // polyMesh.movePoints will only update oldPoints
796
+ // if (curMotionTimeIndex_ != time().timeIndex())
797
+ const_cast < pointField & > (mesh_ .oldPoints ()) = * meshOldPoints_ ;
798
+
806
799
readMeshCheckpoint ();
807
800
808
801
DEBUG (adapterInfo ("Moved mesh points to their previous locations." ));
You can’t perform that action at this time.
0 commit comments