diff --git a/Hadrons/Application.cc b/Hadrons/Application.cc index e6fb85fa..d3da1b54 100644 --- a/Hadrons/Application.cc +++ b/Hadrons/Application.cc @@ -165,12 +165,13 @@ void Application::parseParameterFile(const std::string parameterFileName) pop(reader); } -void Application::saveParameterFile(const std::string parameterFileName) +void Application::saveParameterFile(const std::string parameterFileName, unsigned int prec) { LOG(Message) << "Saving application to '" << parameterFileName << "'..." << std::endl; if (env().getGrid()->IsBoss()) { XmlWriter writer(parameterFileName); + writer.setPrecision(prec); ObjectId id; const unsigned int nMod = vm().getNModule(); diff --git a/Hadrons/Application.hpp b/Hadrons/Application.hpp index 1fc8c146..36903e88 100644 --- a/Hadrons/Application.hpp +++ b/Hadrons/Application.hpp @@ -79,7 +79,7 @@ public: void run(void); // XML parameter file I/O void parseParameterFile(const std::string parameterFileName); - void saveParameterFile(const std::string parameterFileName); + void saveParameterFile(const std::string parameterFileName, unsigned int prec=15); // schedule computation void schedule(void); void saveSchedule(const std::string filename);