mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Merge pull request #215 from fionnoh/develop
Added precision tuning to Hadrons parameterfile writing
This commit is contained in:
commit
80947130f9
@ -165,12 +165,13 @@ void Application::parseParameterFile(const std::string parameterFileName)
|
|||||||
pop(reader);
|
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;
|
LOG(Message) << "Saving application to '" << parameterFileName << "'..." << std::endl;
|
||||||
if (env().getGrid()->IsBoss())
|
if (env().getGrid()->IsBoss())
|
||||||
{
|
{
|
||||||
XmlWriter writer(parameterFileName);
|
XmlWriter writer(parameterFileName);
|
||||||
|
writer.setPrecision(prec);
|
||||||
ObjectId id;
|
ObjectId id;
|
||||||
const unsigned int nMod = vm().getNModule();
|
const unsigned int nMod = vm().getNModule();
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ public:
|
|||||||
void run(void);
|
void run(void);
|
||||||
// XML parameter file I/O
|
// XML parameter file I/O
|
||||||
void parseParameterFile(const std::string parameterFileName);
|
void parseParameterFile(const std::string parameterFileName);
|
||||||
void saveParameterFile(const std::string parameterFileName);
|
void saveParameterFile(const std::string parameterFileName, unsigned int prec=15);
|
||||||
// schedule computation
|
// schedule computation
|
||||||
void schedule(void);
|
void schedule(void);
|
||||||
void saveSchedule(const std::string filename);
|
void saveSchedule(const std::string filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user