File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -789,20 +789,14 @@ void preciceAdapter::Adapter::reloadMeshPoints()
789789 return ;
790790 }
791791
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-
803792 // Reload mesh points
804793 const_cast < Foam ::fvMesh & > (mesh_ ).movePoints (* meshPoints_ );
805794
795+ // polyMesh.movePoints will only update oldPoints
796+ // if (curMotionTimeIndex_ != time().timeIndex())
797+ // I.e., first implicit iteration
798+ const_cast < pointField & > (mesh_ .oldPoints ()) = * meshOldPoints_ ;
799+
806800 readMeshCheckpoint ();
807801
808802 DEBUG (adapterInfo ("Moved mesh points to their previous locations." ));
You can’t perform that action at this time.
0 commit comments