iodef.xml.sh 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Find out if we run attached or detached (default is detached)
  2. has_config xios:attached && using_server=false || using_server=true
  3. has_config xios:detached && using_server=true
  4. # Find out if we are using OASIS and set using_oasis accordingly
  5. has_config oasis && using_oasis=true || using_oasis=false
  6. # Buffer allocation mode for XIOS2, either "memory" or "performance". In
  7. # "memory" mode, XIOS will try to use buffers as small as possible. In
  8. # "performance" mode, XIOS will ensure that all active fields can be buffered
  9. # without flushes. This is default since it allows more asynchronism and thus
  10. # better performance at the cost of being quite memory hungry
  11. optimal_buffer_size="performance"
  12. cat << EOF
  13. <?xml version="1.0"?>
  14. <simulation>
  15. <!-- ============================================================================================ -->
  16. <!-- XIOS context -->
  17. <!-- ============================================================================================ -->
  18. <context id="xios" >
  19. <variable_definition>
  20. <variable id="info_level" type="int">5</variable>
  21. <variable id="using_server" type="bool">$using_server</variable>
  22. <variable id="using_oasis" type="bool">$using_oasis</variable>
  23. <variable id="oasis_codes_id" type="string" >oceanx</variable>
  24. <variable id="optimal_buffer_size" type="string" >$optimal_buffer_size</variable>
  25. </variable_definition>
  26. </context>
  27. <!-- ============================================================================================ -->
  28. <!-- NEMO CONTEXT add and suppress the components you need -->
  29. <!-- ============================================================================================ -->
  30. <context id="nemo" src="./context_nemo.xml"/> <!-- NEMO -->
  31. </simulation>
  32. EOF