fixes a bug with backwards compatibility of the pore constraint in the lb
Clean C++ maximum of a double.
Merge branch 'master' into Merged_EK

"Merged with master to keep updated."
Added resetting of mode 0 for EK reaction code.
Minor change to the homogeneous reset.