Skip to content

SH: Cleanup the main SH routine#126

Merged
danielhollas merged 5 commits intomasterfrom
refactor-sh-part2
May 9, 2022
Merged

SH: Cleanup the main SH routine#126
danielhollas merged 5 commits intomasterfrom
refactor-sh-part2

Conversation

@danielhollas
Copy link
Copy Markdown
Contributor

@danielhollas danielhollas commented Apr 28, 2022

This is mostly just moving code out of the main SH loop into separate subroutines.

One minor breaking change is that I have renamed the files in which we store geometries where the hop occured.
Instead of geom.<oldstate>.<newstate>.timestep> we have hopgeom.oldstate.newstate.timestep.xyz

Changes in test files are due to random number state, since we are now calculateing hopping probabilities even if hopping is forbidden via nohop=1. We now print a warning if a hop is ignored because of this setting.

@danielhollas danielhollas added the refactor No functional changes, just refactoring or cleaning up the code. label Apr 28, 2022
@danielhollas danielhollas self-assigned this Apr 28, 2022
@danielhollas danielhollas requested a review from suchanj April 28, 2022 15:29
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2022

Codecov Report

Merging #126 (a31f58b) into master (805950e) will decrease coverage by 0.01%.
The diff coverage is 98.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #126      +/-   ##
==========================================
- Coverage   94.33%   94.32%   -0.02%     
==========================================
  Files          42       42              
  Lines        5862     5864       +2     
==========================================
+ Hits         5530     5531       +1     
- Misses        332      333       +1     
Flag Coverage Δ
unittests 25.91% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/surfacehop.F90 94.93% <98.68%> (-0.20%) ⬇️

Comment thread src/surfacehop.F90
Base automatically changed from refactor-sh to master May 9, 2022 13:43
@danielhollas danielhollas merged commit dedb7f1 into master May 9, 2022
@danielhollas danielhollas deleted the refactor-sh-part2 branch May 9, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor No functional changes, just refactoring or cleaning up the code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants