From f8461eeec7904b8343c43c8442af1b9ecf3a00f7 Mon Sep 17 00:00:00 2001 From: Xavier Raynaud Date: Tue, 22 May 2012 11:15:40 +0200 Subject: [PATCH] Added initialization of max concentration. --- examples/polymer_reorder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/polymer_reorder.cpp b/examples/polymer_reorder.cpp index a6f50afac..55ee126b6 100644 --- a/examples/polymer_reorder.cpp +++ b/examples/polymer_reorder.cpp @@ -405,8 +405,10 @@ main(int argc, char** argv) for (int cell = 0; cell < grid->c_grid()->number_of_cells; ++cell) { if (state.saturation()[2*cell] > 0) { state.concentration()[cell] = poly_init; + state.maxconcentration()[cell] = poly_init; } else { state.concentration()[cell] = 0.; + state.maxconcentration()[cell] = poly_init; } } }