From a92e38324193ad0ba9d3ea262a3a710820a8e20d Mon Sep 17 00:00:00 2001 From: Sam Yates <halfflat@gmail.com> Date: Thu, 25 Aug 2016 12:07:50 +0200 Subject: [PATCH] Address PR#82 review. * Initialize voltage in `fvm_cell::initialize` to `resting_potential_`. * Remove errant end-of-line whitespace. * Fix merge conflict (merged master). --- src/fvm_cell.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fvm_cell.hpp b/src/fvm_cell.hpp index 5335c812..83fd8b76 100644 --- a/src/fvm_cell.hpp +++ b/src/fvm_cell.hpp @@ -82,7 +82,7 @@ * * Resets state to initial conditiions and sets * internal simulation time to 0. - * + * * `lowered.advance(value_type dt)` * * Advanece simulation state by `dt` (value in @@ -325,7 +325,7 @@ void fvm_cell<T, I>::initialize( face_alpha_ = vector_type{ncomp, T{0}}; cv_capacitance_ = vector_type{ncomp, T{0}}; current_ = vector_type{ncomp, T{0}}; - voltage_ = vector_type{ncomp, T{0}}; + voltage_ = vector_type{ncomp, T{resting_potential_}}; using util::left; using util::right; -- GitLab