HSU-HPC / MaMiCo

The macro-micro-coupling tool for coupled molecular-continuum flow simulation
BSD 3-Clause "New" or "Revised" License
13 stars 5 forks source link

Use valid XML for config files #48

Closed rubenhorn closed 7 months ago

rubenhorn commented 7 months ago

Issue

Currently, the MaMiCo configuration XML files have multiple root nodes, but according to the XML standard there should be only one, so other parsers may not be able to read them.

Solution

Updating the configuration parser to deal with a single root note (similar to ls1) containing the current configuration structure (similar to ls1):

<?xml version="1.0" encoding="UTF-8"?>
<scenario-configuration>
   <!-- contents of the old configuration file format -->
</scenario-configuration>

All example configuration files should be updated accordingly. The parser should still be able to handle the legacy format for compatibility with old configuration files.

Steps