.. _timesync1_rst: timesync1 ============================= Two models, A & B, run simulations over time and exchange data via a timestep synchronization communication pattern. Both models compute the same variables (`x` and `y`) via the same source code and output data at each time step to a file, but they have different time steps. .. contents:: :local: C Version --------- Model Code: .. literalinclude:: /../../../../../../../opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/yggdrasil/examples/timesync1/src/timesync.c :language: c :linenos: Model YAML: .. literalinclude:: /temp/timesync1_c.yml :language: yaml :linenos: C++ Version ----------- Model Code: .. literalinclude:: /../../../../../../../opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/yggdrasil/examples/timesync1/src/timesync.cpp :language: c++ :linenos: Model YAML: .. literalinclude:: /temp/timesync1_cpp.yml :language: yaml :linenos: Fortran Version --------------- Model Code: .. literalinclude:: /../../../../../../../opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/yggdrasil/examples/timesync1/src/timesync.f90 :language: python :linenos: Model YAML: .. literalinclude:: /temp/timesync1_fortran.yml :language: yaml :linenos: Julia Version ------------- Model Code: .. literalinclude:: /../../../../../../../opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/yggdrasil/examples/timesync1/src/timesync.jl :language: python :linenos: Model YAML: .. literalinclude:: /temp/timesync1_julia.yml :language: yaml :linenos: Matlab Version -------------- Model Code: .. literalinclude:: /../../../../../../../opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/yggdrasil/examples/timesync1/src/timesync.m :language: matlab :linenos: Model YAML: .. literalinclude:: /temp/timesync1_matlab.yml :language: yaml :linenos: Python Version -------------- Model Code: .. literalinclude:: /../../../../../../../opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/yggdrasil/examples/timesync1/src/timesync.py :language: python :linenos: Model YAML: .. literalinclude:: /temp/timesync1_python.yml :language: yaml :linenos: R Version --------- Model Code: .. literalinclude:: /../../../../../../../opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/yggdrasil/examples/timesync1/src/timesync.R :language: python :linenos: Model YAML: .. literalinclude:: /temp/timesync1_r.yml :language: yaml :linenos: