File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -535,10 +535,12 @@ test()
535535 // precice.readVectorData
536536 m_cawf_mng->startTimeStep () ;
537537
538+ #ifdef USE_PRECICE_V3
538539 if (not m_cawf_mng->isMeshUpdate ())
539540 {
540541 m_cawf_mng->updateMesh () ;
541542 }
543+ #endif
542544
543545 computeDensity ();
544546 computePressure ();
@@ -577,9 +579,9 @@ test()
577579 info ()<<" NEW EVENT LAYER : " <<m_new_layer_id;
578580 ++ m_new_layer_id ;
579581
580- if (m_cawf_mng)
581- m_cawf_mng->invalidateMesh (true ) ;
582-
582+ # ifdef USE_PRECICE_V3
583+ m_cawf_mng->invalidateMesh (true ) ;
584+ # endif
583585 Real rho0 = options ()->surfaceDensity () ;
584586 Real drhodp0 = options ()->surfaceCompressibility () ;
585587 ENUMERATE_CELL (icell,new_event)
Original file line number Diff line number Diff line change @@ -352,11 +352,12 @@ test()
352352 // precice.readVectorData
353353 m_cawf_mng->startTimeStep () ;
354354
355+ #ifdef USE_PRECICE_V3
355356 if (not m_cawf_mng->isMeshUpdate ())
356357 {
357358 m_cawf_mng->updateMesh () ;
358359 }
359-
360+ # endif
360361 computeDivU ();
361362
362363 // precice.writeVectorData
@@ -391,9 +392,9 @@ test()
391392 info ()<<" NEW EVENT LAYER : " <<m_new_layer_id;
392393 ++ m_new_layer_id ;
393394
394- if (m_cawf_mng)
395- m_cawf_mng->invalidateMesh (true ) ;
396-
395+ # ifdef USE_PRECICE_V3
396+ m_cawf_mng->invalidateMesh (true ) ;
397+ # endif
397398 ENUMERATE_CELL (icell,new_event)
398399 {
399400 m_cell_div_u[icell] = 0 . ;
You can’t perform that action at this time.
0 commit comments