danieljprice / phantom

Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code
https://phantomsph.github.io
Other
108 stars 239 forks source link

(test_analysis) added unit tests for analysis_common_envelope to GitHub actions #384

Closed danieljprice closed 1 year ago

danieljprice commented 1 year ago

Type of PR: addition to test suite

Description: Unit tests for analysis_common_envelope contributed by Miguel Gonzalez-Bolivar

Testing:

the analysis_ce unit test was/can be checked as follows:

cd scripts

change listofcomponents on line 75 of buildbot.sh to just:

listofcomponents='analysis'

then run the buildbot as usual:

./buildbot.sh

this should compile and run phantomanalysis and perform the unit test for the analysis_common_envelope module, with eventual output something like:

 Phantom analysis: may your paper be a happy one

Passed: separation_vs_time.ev created

Passed: boundunbound_vs_time.ev created

Passed: energy.ev created

Passed: No NaN values found in separation_vs_time.ev

Passed: No NaN values found in boundunbound_vs_time.ev

Passed: No NaN values found in energy.ev

Passed: kin energy in energy.ev has all values positive

Passed: pot energy in energy.ev has all values negative

Passed: therm energy in energy.ev has all values positive

runs and passes analysis tests

Did you run the bots? no