Changed: Cleaned away some unused/defunct items from AdaptiveSIM

This commit is contained in:
Knut Morten Okstad
2017-05-05 02:03:25 +02:00
committed by Kjetil Andre Johannessen
parent e14dd82b23
commit 13aee2fee3
3 changed files with 33 additions and 70 deletions

View File

@@ -39,18 +39,15 @@ public:
//! \brief Solves the problem up to the final time.
virtual int solveProblem(char* infile, const char* heading, bool = false)
{
if (SIMSolver<T1>::exporter)
SIMSolver<T1>::exporter->setNormPrefixes(aSim.getNormPrefixes());
aSim.setupProjections();
aSim.initAdaptor(0,2);
if (!aSim.initAdaptor())
return 1;
this->printHeading(heading);
for (int iStep = 1; aSim.adaptMesh(iStep); iStep++)
if (!aSim.solveStep(infile,iStep))
return 1;
else if (!aSim.writeGlv(infile,iStep,aSim.getNoNorms()))
else if (!aSim.writeGlv(infile,iStep))
return 2;
else if (SIMSolver<T1>::exporter)
SIMSolver<T1>::exporter->dumpTimeLevel(nullptr,true);