Skip to content

Commit

Permalink
Migrate to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Feb 10, 2020
1 parent 7cb3342 commit 89cb5b3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Preallocation_Timings/precice.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<use-data name="Data" />
</mesh>

<m2n:sockets from="A" to="B" network="lo" exchange-directory=".." distribution-type="point-to-point" />
<m2n:sockets from="A" to="B" network="lo" exchange-directory=".." />

<participant name="A">
<use-mesh name="MeshA" provide="yes" />
Expand Down
2 changes: 1 addition & 1 deletion RBF_Timings/precice.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<use-data name="Data" />
</mesh>

<m2n:sockets from="A" to="B" network="{network}" exchange-directory=".." distribution-type="point-to-point" />
<m2n:sockets from="A" to="B" network="{network}" exchange-directory=".." />

<participant name="A">
<use-mesh name="MeshA" provide="yes" />
Expand Down
14 changes: 7 additions & 7 deletions contrib/precice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@
<use-data name="Data" />
</mesh>

<m2n:sockets from="A" to="B" network="lo" exchange-directory="." distribution-type="point-to-point" />
<m2n:sockets from="A" to="B" network="lo" exchange-directory="." />

<participant name="A">
<use-mesh name="MeshA" provide="yes" />
<write-data name="Data" mesh="MeshA" />
<master:mpi-single />
</participant>

<participant name="B">
<use-mesh name="MeshA" provide="no" from="A" />
<use-mesh name="MeshB" provide="yes" />
<read-data name="Data" mesh="MeshB" />

<mapping:nearest-neighbor constraint="consistent" direction="read" from="MeshA" to="MeshB" />
<!-- <mapping:nearest-projection constraint="consistent" direction="read" from="MeshA" to="MeshB" /> -->
<!-- <mapping:rbf-gaussian shape-parameter="4" constraint="consistent" direction="read" from="MeshA" to="MeshB" x-dead="false" y-dead="false" z-dead="false" /> -->
<!-- <mapping:petrbf-gaussian shape-parameter="5600" solver-rtol="1e-9" constraint="consistent" direction="read" from="MeshA" to="MeshB" x-dead="true" y-dead="false" z-dead="false" polynomial="separate" preallocation="tree"/> -->
<!-- <mapping:petrbf-volume-splines solver-rtol="1e-9" constraint="consistent" direction="read" from="MeshA" to="MeshB" x-dead="false" y-dead="false" z-dead="false" /> -->
<!-- <mapping:rbf-gaussian shape-parameter="5600" solver-rtol="1e-9" constraint="consistent" direction="read" from="MeshA" to="MeshB" x-dead="true" y-dead="false" z-dead="false" polynomial="separate" preallocation="tree"/> -->
<!-- <mapping:rbf-volume-splines solver-rtol="1e-9" constraint="consistent" direction="read" from="MeshA" to="MeshB" x-dead="false" y-dead="false" z-dead="false" /> -->

<!-- <export:vtk timestep-interval="1" directory="vtkB/" normals="0"/> -->
<master:mpi-single />
<!-- <export:vtk every-n-time-windows="1" directory="vtkB/" normals="0"/> -->
</participant>

<coupling-scheme:parallel-explicit>
<participants first="A" second="B" />
<max-time value="1.0" />
<timestep-length value="1" />
<time-window-size value="1" />
<exchange data="Data" mesh="MeshA" from="A" to="B" />
</coupling-scheme:parallel-explicit>

Expand Down
2 changes: 1 addition & 1 deletion precice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<use-data name="Data" />
</mesh>

<m2n:sockets from="A" to="B" network="lo" exchange-directory=".." distribution-type="point-to-point" />
<m2n:sockets from="A" to="B" network="lo" exchange-directory=".." />

<participant name="A">
<use-mesh name="MeshA" provide="yes" />
Expand Down
2 changes: 1 addition & 1 deletion src/preciceMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ int main(int argc, char* argv[])
oss << mesh.data[i] << ' ';
VLOG(1) << "Data written: " << oss.str();

interface.fulfilledAction(precice::constants::actionWriteInitialData());
interface.markActionFulfilled(precice::constants::actionWriteInitialData());
}
interface.initializeData();

Expand Down

0 comments on commit 89cb5b3

Please sign in to comment.