Commit a19e0ad3 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

windows compatibility changes

parent 0e6ef10a
......@@ -118,7 +118,7 @@ Flag BaseProblem<ProblemType>::initDataFromFile(AdaptInfo *adaptInfo)
else if (readFormat == "multi-vtu") {
size_t numFiles = 0;
Initfile::get(name + "->number of files", numFiles);
for (size_t n; n < numFiles; n++) {
for (size_t n = 0; n < numFiles; n++) {
std::vector<std::string> filenames;
Initfile::get(name + "->value file[" + boost::lexical_cast<std::string>(n) + "]", filenames);
if (filenames.size() == 0)
......
......@@ -107,7 +107,7 @@ void CahnHilliardNavierStokes::transferInitialSolution(AdaptInfo *adaptInfo)
{
calcVelocity();
for (int i = 0; i < 2+dow; i++)
for (size_t i = 0; i < 2+dow; i++)
prob->setExactSolution(prob->getSolution()->getDOFVector(i), i);
fileWriter->writeFiles(adaptInfo, false);
......
......@@ -50,7 +50,7 @@ void NavierStokesPhase_TaylorHood::transferInitialSolution(AdaptInfo *adaptInfo)
{ FUNCNAME("NavierStokesPhase_TaylorHood::transferInitialSolution()");
fileWriterPhase = new FileWriter(name + "->phase->output", getFeSpace()->getMesh(), phase);
for (int i = 0; i < dow; i++)
for (size_t i = 0; i < dow; i++)
transformDOF(prob->getSolution()->getDOFVector(i), phase, prob->getSolution()->getDOFVector(i), new AMDiS::Mult<double>);
super::transferInitialSolution(adaptInfo);
......
......@@ -115,7 +115,7 @@ void NavierStokes_TaylorHood::solveInitialProblem(AdaptInfo *adaptInfo)
void NavierStokes_TaylorHood::transferInitialSolution(AdaptInfo *adaptInfo)
{ FUNCNAME("NavierStokes_TaylorHood::transferInitialSolution()");
for (int i = 0; i < dow; i++)
for (size_t i = 0; i < dow; i++)
prob->setExactSolution(prob->getSolution()->getDOFVector(i), i);
calcVelocity();
......
......@@ -119,7 +119,7 @@ void NavierStokes_TaylorHood_RB::transferInitialSolution(AdaptInfo *adaptInfo)
else if (dow == 3)
transformDOF(prob->getSolution()->getDOFVector(0), prob->getSolution()->getDOFVector(1), prob->getSolution()->getDOFVector(2), velocity, new AMDiS::Vec3WorldVec<double>);
for (int i = 0; i < dow; i++)
for (size_t i = 0; i < dow; i++)
prob->setExactSolution(prob->getSolution()->getDOFVector(i), i);
fileWriter->writeFiles(adaptInfo, false);
......
Markdown is supported
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