Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed uninitialized data in OBC config code
- A test for division by zero is made but the parameters being tested are uninitialized. - I moved the loop to within the overall `if (OBC%number_of_segments > 0)` so that I could rely on the setting of the parameters to zero. - However, this problem occurred because the parameters are only read if Flather BCs are being used. If they are not it seems the tracer reservoir parameters are not read - it might work by chance but this does requirement for Flather does not seem correct to me. @khedstrom ? - Detected by NCI tests, thanks @nicjhan: https://accessdev.nci.org.au/jenkins/job/mom-ocean.org/job/MOM6_run/build=DEBUG,compiler=intel,experiment=ocean_only-DOME,label=nah599,memory_type=dynamic/139/console
- Loading branch information