Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend thermostat and rotation test #1510

Merged
merged 15 commits into from
Oct 20, 2017

Conversation

RudolfWeeber
Copy link
Contributor

Verify diffusion coeff via Green Kubo per component for rotation and translation.
All combinations of ROTATION, MASS, RINERTIA, LANGEVIN_PER_PARTICLE and PARTICLE_ANISOTROPY should be handled.
Extended test for rotational inertia: Test momenum and energy conservation for non-isotropic inertia tensor

Further changes:

  • Coverage maxset build with -O1 rather than -O0. Otherwise the tests never complete.
    Correlator: Prevent double finalize() as well as get_data() after finalize().
    py thermostat interface: Replace isinstance(... List) by hasattr(.., @iter_@) so it works with tuplesp and np arrays.

@codecov
Copy link

codecov bot commented Oct 10, 2017

Codecov Report

Merging #1510 into python will increase coverage by 1.78%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           python    #1510      +/-   ##
==========================================
+ Coverage   40.59%   42.38%   +1.78%     
==========================================
  Files         364      371       +7     
  Lines       30509    30011     -498     
  Branches     5584     5806     +222     
==========================================
+ Hits        12386    12719     +333     
+ Misses      18097    17268     -829     
+ Partials       26       24       -2
Impacted Files Coverage Δ
src/core/correlators/Correlator.cpp 39.59% <16.66%> (+5.1%) ⬆️
src/core/observables/Observable.hpp 50% <0%> (-50%) ⬇️
src/script_interface/None.hpp 0% <0%> (-50%) ⬇️
src/core/virtual_sites.hpp 50% <0%> (-16.67%) ⬇️
src/core/hertzian.hpp 33.33% <0%> (-12.13%) ⬇️
src/core/gaussian.hpp 33.33% <0%> (-12.13%) ⬇️
src/core/polynom.hpp 33.33% <0%> (-7.85%) ⬇️
src/core/reaction_field.hpp 14.28% <0%> (-5.72%) ⬇️
src/core/buckingham.cpp 18.18% <0%> (-5.55%) ⬇️
src/core/soft_sphere.hpp 30.76% <0%> (-4.53%) ⬇️
... and 199 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edce423...a084086. Read the comment docs.

@@ -4,7 +4,7 @@ file(GLOB EspressoCore_SRC

if( WITH_COVERAGE )
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 --coverage -fprofile-arcs -ftest-coverage")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O1 --coverage -fprofile-arcs -ftest-coverage")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not a good idea. -O1 includes for example -finline-functions-called-once which will mess up coverage.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the numbers that does not seem to be a big issue.

@RudolfWeeber
Copy link
Contributor Author

RudolfWeeber commented Oct 11, 2017 via email

@fweik fweik merged commit 046346f into espressomd:python Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants