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

Errors in KMC_Lattice_tests.exe #61

Closed
myousefi2016 opened this issue Jan 18, 2019 · 1 comment
Closed

Errors in KMC_Lattice_tests.exe #61

myousefi2016 opened this issue Jan 18, 2019 · 1 comment

Comments

@myousefi2016
Copy link

myousefi2016 commented Jan 18, 2019

I build your code with GCC 6.3 and OpenMPI 1.10.3 in our cluster due to the provided instruction in the README and when I run the test, I got these errors:

[----------] Global test environment set-up.
[----------] 11 tests from SimulationTest
[ RUN      ] SimulationTest.CheckParameters
Error! All lattice dimensions must be greater than zero.
Error! The temperature must be greater than zero.
Error! Only one of the first reaction method, the selective recalculation method, or the full recalculation method can be enabled.
Error! Only one of the first reaction method, the selective recalculation method, or the full recalculation method can be enabled.
Error! Only one of the first reaction method, the selective recalculation method, or the full recalculation method can be enabled.
Error! One of the first reaction method, the selective recalculation method, or the full recalculation method must be enabled.
Error! The event recalculation cutoff radius must be greater than zero.
Error! The logfile filestream has not been set.
Error! The logfile filestream is not open or has an error.
[       OK ] SimulationTest.CheckParameters (2660 ms)
[ RUN      ] SimulationTest.SetupTests
Error! The temperature must be greater than zero.
[       OK ] SimulationTest.SetupTests (2644 ms)
[ RUN      ] SimulationTest.RemoveEventObjectTests
Error! The Event pointer could not be found in the event list and could not be removed.
Error! The Object pointer could not be found in the object list and could not be removed.
[       OK ] SimulationTest.RemoveEventObjectTests (2572 ms)
[ RUN      ] SimulationTest.BKL_determinePathwayTests
[       OK ] SimulationTest.BKL_determinePathwayTests (23795 ms)
[ RUN      ] SimulationTest.EventExecutionTests
[       OK ] SimulationTest.EventExecutionTests (13776 ms)
[ RUN      ] SimulationTest.DisplacementTests
[       OK ] SimulationTest.DisplacementTests (4269 ms)
[ RUN      ] SimulationTest.3DRandomWalkTests
[       OK ] SimulationTest.3DRandomWalkTests (16671 ms)
[ RUN      ] SimulationTest.2DRandomWalkTests
[       OK ] SimulationTest.2DRandomWalkTests (15602 ms)
[ RUN      ] SimulationTest.1DRandomWalkTests
[       OK ] SimulationTest.1DRandomWalkTests (15473 ms)
[ RUN      ] SimulationTest.AlgorithmTests
[       OK ] SimulationTest.AlgorithmTests (21691 ms)
[ RUN      ] SimulationTest.ErrorMessageTests
[       OK ] SimulationTest.ErrorMessageTests (2497 ms)
[----------] 11 tests from SimulationTest (123048 ms total)

[----------] 14 tests from UtilsTests
[ RUN      ] UtilsTests.CoordsTests
[       OK ] UtilsTests.CoordsTests (0 ms)
[ RUN      ] UtilsTests.CalculateHistTests
Error! Cannot calculate histogram because data vector is empty.
Error! Cannot calculate probability histogram because the input histogram is empty.
Error! Cannot calculate histogram because bin size is less than 1.
Error! Cannot calculate histogram because bin size is less than 1.
[       OK ] UtilsTests.CalculateHistTests (1 ms)
[ RUN      ] UtilsTests.CalculateProbabilityHistTests
Error! Cannot calculate probability histogram because the input data vector is empty.
Error! Cannot calculate probability histogram because the input data vector is empty.
Error! Cannot calculate probability histogram because the input data vector is empty.
Error! Cannot calculate probability histogram because the input data vector is empty.
Error! Cannot calculate probability histogram because the input data vector is empty.
Error! Cannot calculate probability histogram because the input data vector is empty.
Error! Cannot calculate probability histogram because the input data vector is empty.
Error! Cannot calculate density histogram because input probability histogram is empty.
Error! Cannot calculate cumulative histogram because the input histogram vector is empty.
Error! Cannot calculate density histogram because the input probability histogram is too small.
[       OK ] UtilsTests.CalculateProbabilityHistTests (24370 ms)
[ RUN      ] UtilsTests.ExponentialDOSTests
[       OK ] UtilsTests.ExponentialDOSTests (7731 ms)
[ RUN      ] UtilsTests.GaussianDOSTests
[       OK ] UtilsTests.GaussianDOSTests (6110 ms)
[ RUN      ] UtilsTests.Str2boolTests
[       OK ] UtilsTests.Str2boolTests (0 ms)
[ RUN      ] UtilsTests.IntegrateDataTests
[       OK ] UtilsTests.IntegrateDataTests (0 ms)
[ RUN      ] UtilsTests.InterpolateDataTests
Warning! The input x-value lies outside the range of the input data set.
Warning! The input x-value lies outside the range of the input data set.
[       OK ] UtilsTests.InterpolateDataTests (0 ms)
[ RUN      ] UtilsTests.RemoveWhitespaceTests
[       OK ] UtilsTests.RemoveWhitespaceTests (0 ms)
[ RUN      ] UtilsTests.ArrayStatsTests
[       OK ] UtilsTests.ArrayStatsTests (0 ms)
[ RUN      ] UtilsTests.RoundTests
[       OK ] UtilsTests.RoundTests (0 ms)
[ RUN      ] UtilsTests.IntPowTests
[       OK ] UtilsTests.IntPowTests (0 ms)
[ RUN      ] UtilsTests.RemoveDuplicatesTests
[       OK ] UtilsTests.RemoveDuplicatesTests (0 ms)
[ RUN      ] UtilsTests.VectorStatsTests
[       OK ] UtilsTests.VectorStatsTests (0 ms)
[----------] 14 tests from UtilsTests (38212 ms total)

[----------] 13 tests from LatticeTest
[ RUN      ] LatticeTest.CheckParameters
Error! All lattice dimensions must be greater than zero.
Error! The lattice unit size must be greater than zero.
[       OK ] LatticeTest.CheckParameters (7 ms)
[ RUN      ] LatticeTest.InitializationTests
Error! All lattice dimensions must be greater than zero.
[       OK ] LatticeTest.InitializationTests (6 ms)
[ RUN      ] LatticeTest.CalculateDestCoordsTests
[       OK ] LatticeTest.CalculateDestCoordsTests (6 ms)
[ RUN      ] LatticeTest.PeriodicCrossingTests
[       OK ] LatticeTest.PeriodicCrossingTests (6 ms)
[ RUN      ] LatticeTest.CheckMoveValidityTests
[       OK ] LatticeTest.CheckMoveValidityTests (7 ms)
[ RUN      ] LatticeTest.RandomSiteGenTests
[       OK ] LatticeTest.RandomSiteGenTests (7754 ms)
[ RUN      ] LatticeTest.RandomUnoccupiedNeighborTests
[       OK ] LatticeTest.RandomUnoccupiedNeighborTests (11937 ms)
[ RUN      ] LatticeTest.2DTests
[       OK ] LatticeTest.2DTests (11827 ms)
[ RUN      ] LatticeTest.1DTests
[       OK ] LatticeTest.1DTests (11779 ms)
[ RUN      ] LatticeTest.LatticeDistanceTests
[       OK ] LatticeTest.LatticeDistanceTests (6 ms)
[ RUN      ] LatticeTest.GetSiteCoordsTests
[       OK ] LatticeTest.GetSiteCoordsTests (6 ms)
[ RUN      ] LatticeTest.OccupancyTests
[       OK ] LatticeTest.OccupancyTests (27 ms)
[ RUN      ] LatticeTest.SiteTests
Error setting the lattice site pointers! The number of sites in the input vector do not equal the expected number of lattice sites.
Error! Input coordinates are not located in the lattice.
Error! Input site index is not located in the lattice.
[       OK ] LatticeTest.SiteTests (7 ms)
[----------] 13 tests from LatticeTest (43375 ms total)

[----------] 2 tests from EventTest
[ RUN      ] EventTest.GeneralEventTests
[       OK ] EventTest.GeneralEventTests (0 ms)
[ RUN      ] EventTest.CalculateExecutionTimeTests
[       OK ] EventTest.CalculateExecutionTimeTests (13201 ms)
[----------] 2 tests from EventTest (13201 ms total)

[----------] 2 tests from ObjectTests
[ RUN      ] ObjectTests.GeneralObjectTests
[       OK ] ObjectTests.GeneralObjectTests (0 ms)
[ RUN      ] ObjectTests.CalculateDisplacementTests
[       OK ] ObjectTests.CalculateDisplacementTests (0 ms)
[----------] 2 tests from ObjectTests (0 ms total)

[----------] 3 tests from VersionTests
[ RUN      ] VersionTests.ConstructorTests
Error! Input version string, '0.0.0', does not have the correct format.
Error! Input version string, '0.0.1-alpha.0', does not have the correct format.
Error! Input version string, '0.0.0-alpha.1', does not have the correct format.
[       OK ] VersionTests.ConstructorTests (0 ms)
[ RUN      ] VersionTests.ComparisonTests
[       OK ] VersionTests.ComparisonTests (0 ms)
[ RUN      ] VersionTests.GetVersionStrTests
[       OK ] VersionTests.GetVersionStrTests (0 ms)
[----------] 3 tests from VersionTests (0 ms total)

[----------] Global test environment tear-down
[==========] 45 tests from 6 test cases ran. (217837 ms total)
[  PASSED  ] 45 tests.

Any idea how to fix them?

@MikeHeiber
Copy link
Owner

These are expected errors. The program is testing whether errors are generated under designated test cases that should produce errors. If you notice at the bottom, all 45 of the tests passed. That means that there were no testing errors. I understand that it can be kind of confusing since the error messages are being printed to the command line. The important thing though is whether or not the tests themselves pass or fail.

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

No branches or pull requests

2 participants