-
Notifications
You must be signed in to change notification settings - Fork 189
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
Extend thermostat and rotation test #1510
Conversation
Up to values of 1E-3, approximately.
finalize() and get_datata() This may well have been the Heisenbug causing the segfaults
…tInterface-derived classes
Remove correlators from system.auto_update_correlators after finalize() call
energy and momenum conservation for non-isotropi itensor
By not calling finalize()
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
@@ -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") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
> @@ -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")
That is not a good idea. `-O1` includes for example `-finline-functions-called-once` which will mess up coverage.
It was simply necessary to get the Green Kubo integrals to converge
in less than 10 minutes on Travis. I think, we can trade good
testing for all aspects of the thermostat (and apparently the correlator) against a bit of accuracy
in coverage.
|
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:
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.