Skip to content

Commit eb39575

Browse files
author
Wolfgang Kastaun
committed
Minor changes to fix build and install problems.
No changes to functionality.
1 parent 3bbd7dc commit eb39575

File tree

10 files changed

+44
-45
lines changed

10 files changed

+44
-45
lines changed

README renamed to README.rst

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,30 @@ installed via Python's pip. For more info, see
2626
https://mesonbuild.com
2727

2828

29-
To build the library,
29+
To build the library::
30+
31+
$> cd <repository>
32+
$> meson mbuild --buildtype=release
33+
$> cd mbuild
34+
$> ninja
3035

31-
$> cd <repository>
32-
$> meson mbuild --buildtype=release
33-
$> cd mbuild
34-
$> ninja
35-
3636
This will compile with optimization and without debug symbols. Other
37-
possibilities are --buildtype=debug and --buildtype=debugoptimized
37+
possibilities are `--buildtype=debug` and `--buildtype=debugoptimized`
3838
To use a different compiler, e.g. clang, prefix the meson command
39-
with CC=clang CXX=clang++.
39+
with `CC=clang CXX=clang++`.
4040
See https://mesonbuild.com/Running-Meson.html for general Meson usage.
4141

4242

4343
Installing
4444
----------
4545

46-
To install the library systemwide,
46+
To install the library systemwide::
47+
48+
$> ninja install
4749

48-
$> ninja install
49-
50-
To install in a user-defined location
50+
To install in a user-defined location::
5151

52-
$> DESTDIR=<prefix absolute path> ninja install
52+
$> DESTDIR=<prefix absolute path> ninja install
5353

5454

5555
Using the Library
@@ -63,65 +63,62 @@ with `libRePrimAnd`.
6363
Creating Documentation
6464
----------------------
6565

66-
To just build the documentation, use the target `documentation`.
66+
To just build the documentation, use the target `documentation`::
6767

68-
$> ninja documentation
68+
$> ninja documentation
6969

7070
The resulting pages can be found in the build directory under
71-
docsrc/sphinx/index.html
71+
`docsrc/sphinx/index.html`
7272
When installing the library, the documentation is installed as well
73-
by default, to <prefix>/usr/local/share/doc/libreprimand/index.html
73+
by default, to `<prefix>/usr/local/share/doc/libreprimand/index.html`
7474

7575
The building of the documentation requires sphinx with the breathe
7676
extension as well as doxygen. To disable building documentation and
77-
remove the corresponding dependencies, use the build option
77+
remove the corresponding dependencies, use the build option::
7878

79-
$> cd <repository>/mbuild
80-
$> meson configure -Dbuild_documentation=false
79+
$> cd <repository>/mbuild
80+
$> meson configure -Dbuild_documentation=false
8181

8282

8383
Running Tests
8484
-------------
8585

8686
Please also take a minute to run the unit tests to ensure
87-
correct compilation
87+
correct compilation::
88+
89+
$> ninja test
8890

89-
$> ninja test
90-
9191

9292
Benchmarks
9393
----------
9494

9595
The repository contains code to map the efficiency and accuracy of
9696
the primitive recovery, producing the plots shown in the
97-
article. To recreate the data and plots,
97+
article. To recreate the data and plots::
9898

99+
$> ninja benchplots
100+
$> ninja accuracyplots
99101

100-
$> ninja benchplots
101-
$> ninja accuracyplots
102-
103102
The resulting pdf figures are placed in the build directory under
104103
tests/benchmarks
105104

106105
This requires Python+matplotlib. To disable building benchmarking and
107-
remove the corresponding dependencies, use the build option
108-
109-
$> cd <repository>/mbuild
110-
$> meson configure -Dbuild_benchmarks=false
106+
remove the corresponding dependencies, use the build option::
111107

108+
$> cd <repository>/mbuild
109+
$> meson configure -Dbuild_benchmarks=false
112110

113111
Visualizing Master Function
114112
---------------------------
115113

116114
In addition, there is code to sample the primitive recovery master
117115
function (the central ingredient of the scheme) for various cases,
118-
as shown in the paper.
116+
as shown in the paper::
119117

118+
$> ninja srootdata
120119

121-
$> ninja srootdata
122-
123120
The resulting data files are placed in the build directory under
124-
tests/sample_root/
121+
`tests/sample_root/`
125122

126123

127124

library/BasicStuff/include/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ include_basic_stuff = include_directories('.')
33

44
headers_basic_stuff = files('config.h','interpol.h', 'intervals.h',
55
'unitconv.h', 'smtensor.h',
6-
'global_registry.h')
6+
'global_registry.h', 'hdf5imple.h')
77

88
install_headers(headers_basic_stuff, subdir : project_headers_dest)

library/Con2Prim_IMHD/con2prim_imhd.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ void con2prim_mhd::operator()(prim_vars_mhd& pv, cons_vars_mhd& cv,
337337
froot::cache sol{};
338338
froot f{eos, ye, d, q, rsqr, rbsqr, bsqr, sol};
339339

340-
auto bracket { f.initial_bracket(errs) };
340+
auto bracket = f.initial_bracket(errs);
341341

342342
if (errs.failed()) {
343343
set_to_nan(pv, cv);

library/EOS_Barotropic/eos_barotr_file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ eos_barotr detail::load_eos_barotr(const h5grp& g, const units& u)
1111

1212
h5grp g2(g, std::string("eos_")+spec);
1313

14-
auto& r {implementations::registry_reader_eos_barotr::get(spec)};
14+
auto& r = implementations::registry_reader_eos_barotr::get(spec);
1515
return r.load(g2,u);
1616
}
1717

library/EOS_Barotropic/eos_barotr_gpoly.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "eos_barotr_gpoly.h"
22
#include "eos_barotr_gpoly_impl.h"
33
#include <cmath>
4+
#include <stdexcept>
45

56
using namespace std;
67
using namespace EOS_Toolkit;

library/EOS_Barotropic/eos_barotr_poly.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "eos_barotr_poly.h"
22
#include "eos_barotr_poly_impl.h"
33
#include <cmath>
4+
#include <stdexcept>
45

56
using namespace std;
67
using namespace EOS_Toolkit;

library/EOS_Thermal/eos_thermal_file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ eos_thermal detail::load_eos_thermal(const h5grp& g, const units& u)
1111

1212
h5grp g2(g, std::string("eos_")+spec);
1313

14-
auto& r {implementations::registry_reader_eos_thermal::get(spec)};
14+
auto& r = implementations::registry_reader_eos_thermal::get(spec);
1515
return r.load(g2,u);
1616
}
1717

tests/sample_root/src/froot_samp.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void sample_froot(const eos_thermal eos,
7777
detail::froot f(eos, ye0, d, q, rsqr, rbsqr, bsqr, sol);
7878

7979
con2prim_mhd::report errs;
80-
auto bracket{ f.initial_bracket(errs)};
80+
auto bracket = f.initial_bracket(errs);
8181

8282
ofstream os(path + "/" + p.name.c_str() + ".dat");
8383
os << setprecision(15);

tests/src/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ configure_file(input : 'test_config.h.in',
44
output : 'test_config.h',
55
configuration : conf_tests)
66

7-
dep_utf = dependency('boost', modules : ['unit_test_framework'])
7+
dep_utf = dependency('boost', static : false, modules : ['unit_test_framework'])
88

99
src_tst_c2p = ['test_con2prim_mhd.cc', 'test_utils.cc']
1010

tests/src/test_con2prim_mhd.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ BOOST_AUTO_TEST_CASE( c2p_mhd_basic )
613613

614614
env_idealgas par{1e6, 100., 1e-11, 1e-6, 10.0, 10.0, 4e-8};
615615

616-
const auto tst{make_env(par)};
616+
const auto tst = make_env(par);
617617

618618
const real_t ye_fixed{0.25};
619619
const real_t rho{1e-5};
@@ -674,7 +674,7 @@ BOOST_AUTO_TEST_CASE( c2p_mhd_fail )
674674

675675
env_idealgas par{1e-3, 10., 1e-12, 1e-6, 10.0, 10.0, 4e-8};
676676

677-
const auto tst{make_env(par)};
677+
const auto tst = make_env(par);
678678

679679
cons_vars_mhd cv1{2e-3, 1e-4, 1e-3, {0.,0.,0.}, {0.,0.,0.}};
680680
hope(tst.chk_fail_rho(cv1),
@@ -694,7 +694,7 @@ BOOST_AUTO_TEST_CASE( test_con2prim_phys_igas )
694694

695695
env_idealgas par{1e6, 51., 1e-11, 1e-6, 1.0, 2e3, 1e-8};
696696

697-
const auto tst{make_env(par)};
697+
const auto tst = make_env(par);
698698

699699
const real_t max_z{ 1e3 };
700700
const real_t min_z{ 1e-2 };
@@ -729,7 +729,7 @@ BOOST_AUTO_TEST_CASE( test_con2prim_phys_hybr )
729729

730730
env_hybrideos par{1e-12, 1.0, 2e3, 1e-8};
731731

732-
const auto tst{make_env(par)};
732+
const auto tst = make_env(par);
733733

734734
real_t max_z{ 1e3};
735735
real_t min_z{ 1e-2};

0 commit comments

Comments
 (0)