Skip to content

Add test for Morse potential + refactor#84

Merged
danielhollas merged 3 commits into
masterfrom
potential-tests
Mar 14, 2022
Merged

Add test for Morse potential + refactor#84
danielhollas merged 3 commits into
masterfrom
potential-tests

Conversation

@danielhollas

@danielhollas danielhollas commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

Adding a test for the Morse potential and little cleanup of the code for analytical potentials.

cc @suchanj

@danielhollas danielhollas added refactor No functional changes, just refactoring or cleaning up the code. testing Any changes to Github Actions or testing scripts. labels Mar 10, 2022
@danielhollas danielhollas self-assigned this Mar 10, 2022
@codecov

codecov Bot commented Mar 10, 2022

Copy link
Copy Markdown

Codecov Report

Merging #84 (120df95) into master (3581f50) will decrease coverage by 4.63%.
The diff coverage is 82.19%.

❗ Current head 120df95 differs from pull request most recent head 268bac7. Consider uploading reports for the commit 268bac7 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
- Coverage   75.75%   71.12%   -4.64%     
==========================================
  Files          40       40              
  Lines        5705     5742      +37     
==========================================
- Hits         4322     4084     -238     
- Misses       1383     1658     +275     
Impacted Files Coverage Δ
src/force_abin.F90 64.06% <ø> (ø)
src/force_mm.F90 0.00% <ø> (ø)
src/modules.F90 36.00% <ø> (ø)
src/init.F90 65.94% <45.45%> (-0.63%) ⬇️
src/estimators.F90 95.68% <73.68%> (-4.32%) ⬇️
src/potentials.F90 46.33% <95.00%> (+27.98%) ⬆️
src/forces.F90 84.84% <100.00%> (+0.41%) ⬆️
src/vinit.F90 97.79% <100.00%> (ø)
src/force_terash.F90 0.00% <0.00%> (-94.55%) ⬇️
src/io.F90 71.05% <0.00%> (-26.32%) ⬇️
... and 12 more

Now that we have some intentionally failing tests,
redirecting stderr make the output nicer and less confusing.

Downside is if something fails, we need to go look into abin.out,
which is potentially problematic in GHA. We should have some automatic
artifact uploading when for failing tests.
@danielhollas danielhollas changed the title WIP: Add test for Morse potential + refactor Add test for Morse potential + refactor Mar 12, 2022
@danielhollas danielhollas requested a review from suchanj March 12, 2022 01:00
@danielhollas danielhollas marked this pull request as ready for review March 12, 2022 01:01
@danielhollas danielhollas merged commit f961b49 into master Mar 14, 2022
@danielhollas danielhollas deleted the potential-tests branch March 14, 2022 16:48
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. testing Any changes to Github Actions or testing scripts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants