Skip to content

Commit 0e2ce9f

Browse files
jlconlinwhaeck
andauthored
Release/v1.2.2 (#142)
* Updating to NJOY2016.61. * Adding new test for NJOY21 version. * Updating lipservice version. * Improving the way that we ignore uninitilized errors in lipservice. * Trying to fix warning suppression. * Updating release notes * Removing commented code. * Removing g++ from GitHub Actions. * Update to Python 3.5 Co-authored-by: Wim Haeck <whaeck@gmail.com>
1 parent e6fb3c3 commit 0e2ce9f

File tree

213 files changed

+1817135
-1245999
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+1817135
-1245999
lines changed

.github/workflows/ContinuousIntegration.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ ubuntu-18.04, macos-10.15 ]
17-
cxx: [ g++-8, clang++ ]
17+
cxx: [ clang++ ]
1818
vFortran: [ gfortran-8 ]
1919
build_type: [ Debug, Release ]
2020

@@ -37,6 +37,6 @@ jobs:
3737
run: make -j2 VERBOSE=1
3838
working-directory: ./bin
3939
- name: ctest
40-
run: ctest -j2 -R njoy21*
40+
run: ctest -j2
4141
working-directory: ./bin
4242

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ enable_language( Fortran )
1010
# Project-wide setup
1111
########################################################################
1212

13+
find_package( Python3 3.5 REQUIRED )
14+
1315
set( CMAKE_CXX_STANDARD 17 )
1416
set( CMAKE_CXX_STANDARD_REQUIRED YES )
1517

ReleaseNotes.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Release Notes&mdash;NJOY21
22
Given here are some release notes for NJOY21. Each release is made through a formal [Pull Request](https://github.com/njoy/NJOY21/pulls) made on GitHub. There are links in this document that point to each of those Pull Requests, where you can see in great details the changes that were made. Often the Pull Requests are made in response to an [issue](https://github.com/njoy/NJOY21/issues). In such cases, links to those issues are also given.
33

4+
## [NJOY21 1.2.2](https://github.com/njoy/NJOY21/pull/142)
5+
- Updating Legacy NJOY to NJOY2016.61. See [release 2016.61](https://github.com/njoy/NJOY2016/releases/tag/2016.61) for more information
6+
- Adding additional regression tests.
7+
8+
This release is in preparation for the upcoming 1.3.0 release.
9+
410
## [NJOY21 1.2.1](https://github.com/njoy/NJOY21/pull/126)
511
This update removes the `--signature` command-line option as that was a feature of the previous build system. This also updates the GitHub Actions such that they now test all of the NJOY21 stuff, but not the integration tests.
612

cmake/develop_dependencies.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ FetchContent_Declare( lipservice
2323
GIT_SHALLOW TRUE
2424
)
2525

26+
FetchContent_Declare( njoy
27+
GIT_REPOSITORY http://github.com/njoy/NJOY2016
28+
GIT_TAG 2016.61
29+
)
30+
2631
FetchContent_Declare( njoy_c_bindings
2732
GIT_REPOSITORY https://github.com/njoy/njoy_c_bindings
2833
GIT_TAG origin/master

cmake/release_dependencies.cmake

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ FetchContent_Declare( header-utilities
3737

3838
FetchContent_Declare( lipservice
3939
GIT_REPOSITORY https://github.com/njoy/lipservice
40-
GIT_TAG a9b4696883f8b363b28b5b31eecb585ca4429c94
40+
GIT_TAG 1efa5e9452384a7bfc278fde57979c4d91e312c0
4141
)
4242

4343
FetchContent_Declare( Log
@@ -47,7 +47,7 @@ FetchContent_Declare( Log
4747

4848
FetchContent_Declare( njoy
4949
GIT_REPOSITORY http://github.com/njoy/NJOY2016
50-
GIT_TAG b41e221c0752d5e03ed0a74d4cb6106023a59b99
50+
GIT_TAG e722511e88e4568502b51a15cebd38d03fd060a8 # tag: 2016.61
5151
)
5252

5353
FetchContent_Declare( njoy_c_bindings
@@ -59,7 +59,6 @@ FetchContent_Declare( nlohmann_json
5959
GIT_REPOSITORY https://github.com/nlohmann/json
6060
GIT_TAG e7b3b40b5a95bc74b9a7f662830a27c49ffc01b4 # tag: v3.7.3
6161
)
62-
set(JSON_BuildTests OFF CACHE INTERNAL "")
6362

6463
FetchContent_Declare( range-v3-adapter
6564
GIT_REPOSITORY https://github.com/njoy/range-v3-adapter
@@ -70,7 +69,6 @@ FetchContent_Declare( spdlog
7069
GIT_REPOSITORY https://github.com/gabime/spdlog
7170
GIT_TAG a51b4856377a71f81b6d74b9af459305c4c644f8
7271
)
73-
set( SPDLOG_BUILD_TESTING CACHE BOOL OFF )
7472

7573
FetchContent_Declare( tclap-adapter
7674
GIT_REPOSITORY https://github.com/njoy/tclap-adapter

cmake/unit_testing.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ enable_testing()
1212

1313
add_subdirectory( src/njoy21/CommandLine/test )
1414
add_subdirectory( src/njoy21/Driver/test )
15+
add_subdirectory( src/njoy21/Version/test )
1516
add_subdirectory( src/njoy21/io/Manager/test )
1617
add_subdirectory( src/njoy21/legacy/Sequence/test )

src/njoy21.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#include <variant>
55
#include <map>
6-
7-
86
#include <optional>
97
#include <sstream>
108
#include <unordered_set>

src/njoy21/Version.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Version{
44
// Change whenever new capability is implemented
55
static constexpr int minorVersion{2};
66
// Change whenever merge to master branch is done
7-
static constexpr int patchVersion{0};
7+
static constexpr int patchVersion{2};
88

99
static std::string version(){
1010
return std::to_string( majorVersion ) + "." +
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
add_executable( njoy21.Version.test Version.test.cpp )
2+
target_compile_options( njoy21.Version.test PRIVATE ${${PREFIX}_common_flags}
3+
$<$<BOOL:${strict}>:${${PREFIX}_strict_flags}>$<$<CONFIG:DEBUG>:
4+
${${PREFIX}_DEBUG_flags}
5+
$<$<BOOL:${coverage}>:${${PREFIX}_coverage_flags}>>
6+
$<$<CONFIG:RELEASE>:
7+
${${PREFIX}_RELEASE_flags}
8+
$<$<BOOL:${link_time_optimization}>:${${PREFIX}_link_time_optimization_flags}>
9+
$<$<BOOL:${nonportable_optimization}>:${${PREFIX}_nonportable_optimization_flags}>>
10+
11+
${CXX_appended_flags} ${njoy21_appended_flags} )
12+
target_link_libraries( njoy21.Version.test PUBLIC njoy21_library catch-adapter )
13+
add_test( NAME njoy21.Version COMMAND njoy21.Version.test )
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#define CATCH_CONFIG_MAIN
2+
3+
#include "catch.hpp"
4+
5+
namespace njoy21 {
6+
#include "njoy21/Version.hpp"
7+
} // namespace
8+
9+
// This was created in the hopes of avoiding to forget to change the Version
10+
// number in releases.
11+
// This is not a guarantee, but it should help.
12+
SCENARIO( "Testing NJOY21 version" ){
13+
14+
CHECK( "1.2.2" == njoy21::Version::version() );
15+
16+
} // SCENARIO

tests/01/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ configure_file("${RESOURCES}/t322"
1111
"${CMAKE_CURRENT_BINARY_DIR}/tape26" COPYONLY )
1212

1313
add_test( NAME "Test01"
14-
COMMAND ${PYTHON_EXECUTABLE} "../execute.py"
14+
COMMAND ${Python3_EXECUTABLE} "../execute.py"
1515
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" )

0 commit comments

Comments
 (0)