33{
36
37 double precision;
39
40 try {
41
43
46
47 zap(argc, argv);
48 }
49 catch(const exception &error) {
50 FATAL(error.what() << endl);
51 }
52
53
54 {
55 double F = 0.0;
56
57#ifndef RADIATION
58 const auto buffer = { JSeaWater::O, JSeaWater::H, JSeaWater::Na, JSeaWater::Cl };
59#else
60 const auto buffer = { JSeaWater::O, JSeaWater::H, JSeaWater::Na, JSeaWater::Cl, JSeaWater::Ca, JSeaWater::Mg, JSeaWater::K, JSeaWater::S };
61#endif
62 for (const auto& i : buffer) {
63
64 cout << i << endl;
65
66 F += i.f;
67 }
68
69 ASSERT(fabs(F - 1.0) <= precision,
"Test total mass fraction " <<
SCIENTIFIC(12,3) << (F - 1.0));
70 }
71}
#define ASSERT(A,...)
Assert macro.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary data structure for floating point format specification.