Permalink
Browse files

Fix issue #18 : Incorrect time in the output files

  • Loading branch information...
hombit committed Mar 28, 2017
1 parent 72c4d83 commit dd260857f03614e73b4ccf19ae950bb54c885c5c
Showing with 8 additions and 8 deletions.
  1. +8 −8 freddi.cpp
@@ -466,14 +466,6 @@ int main(int ac, char *av[]){
// cout << t/DAY << endl;

vector<double> W(Nx, 0.), Tph(Nx, 0.), Tph_vis(Nx, 0.), Tph_X(Nx, 0.), Tirr(Nx,0.), Sigma(Nx, 0.), Height(Nx, 0.);

try{
nonlenear_diffusion_nonuniform_1_2 (tau, eps, 0., Mdot_out, wunc, h, F);
W = wunc(h, F, 1, Nx-1);
} catch (runtime_error er){
cout << er.what() << endl;
break;
}

Mdot_in_prev = Mdot_in;
Mdot_in = ( F.at(1) - F.at(0) ) / ( h.at(1) - h.at(0) );
@@ -595,6 +587,14 @@ int main(int ac, char *av[]){
}
output_sum << endl;


try{
nonlenear_diffusion_nonuniform_1_2 (tau, eps, 0., Mdot_out, wunc, h, F);
W = wunc(h, F, 1, Nx-1);
} catch (runtime_error er){
cout << er.what() << endl;
break;
}
}

delete oprel;

0 comments on commit dd26085

Please sign in to comment.