Commit 47e52eab authored by thomaskummer's avatar thomaskummer
Browse files

cervin lifev update

parent ec1db455
......@@ -279,7 +279,7 @@ int main (int argc, char** argv)
solver.setupExporters(problemFolder);
heartSolver.setupExporter(problemFolder);
heartSolver.exporter()->postProcess(0);
//============================================
// Electric stimulus function
......
......@@ -218,7 +218,7 @@ public:
return ( coords && time ? 30 : 0 );
}
Real sinSquared (const Real& time, const Real& Tmax, const Real& tmax, const Real& tduration)
Real sinSquared (const Real& time, const Real& Tmax, const Real& tmax, const Real& tduration) const
{
Real timeInPeriod = fmod(time-tmax+0.5*tduration, 800.);
bool inPeriod ( timeInPeriod < tduration && timeInPeriod > 0);
......@@ -252,7 +252,6 @@ public:
void setupExporter(std::string problemFolder = "./", std::string outputFileName = "finiteElementSolution")
{
m_exporter.reset (new exporter_Type());
setupExporter(*m_exporter, M_emSolver.localMeshPtr(), M_emSolver.comm(), outputFileName, problemFolder);
m_exporter->addVariable ( ExporterData<RegionMesh<LinearTetra> >::VectorField,
......@@ -277,6 +276,12 @@ public:
}
exorterPtr_Type exporter()
{
return m_exporter;
}
protected:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment