added: input option for enabling/disabling element norm output

needs to be utilized in the applications
This commit is contained in:
Arne Morten Kvarving 2017-03-29 13:49:55 +02:00
parent 45da47d91d
commit c93bc6ac8d
2 changed files with 5 additions and 0 deletions

View File

@ -47,6 +47,7 @@ SIMoptions::SIMoptions ()
saveInc = 1;
dtSave = 0.0;
pSolOnly = false;
saveNorms = false;
enableController = false;
restartInc = 0;
restartStep = -1;
@ -161,6 +162,9 @@ bool SIMoptions::parseOutputTag (const TiXmlElement* elem)
else if (!strcasecmp(elem->Value(),"primarySolOnly"))
pSolOnly = true;
else if (!strcasecmp(elem->Value(),"saveNorms"))
saveNorms = true;
else if (!strcasecmp(elem->Value(),"projection")) {
std::string type;
if (utl::getAttribute(elem,"type",type))

View File

@ -87,6 +87,7 @@ public:
int saveInc; //!< Number of load/time increments between each result output
double dtSave; //!< Time interval between each result output
bool pSolOnly; //!< If \e true, don't save secondary solution variables
bool saveNorms;//!< If \e true, save element norms
std::string hdf5; //!< Prefix for HDF5-file