Debian Codegraph @

packages/seacas/applications/conjoin/CJ_SystemInterface.h

raw
1 // Copyright(C) 1999-2020, 2022, 2024 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 #pragma once
7
8 #include "CJ_CodeTypes.h"
9 #include "GetLongOpt.h" // for GetLongOption
10 #include <iosfwd> // for ostream
11 #include <string> // for string
12
13 namespace Excn {
14 class SystemInterface
15 {
16 public:
17 SystemInterface();
18 bool parse_options(int argc, char **argv);
19
20 int debug() const { return debugLevel_; }
21 int screen_width() const { return screenWidth_; }
22
23 int quantize_nsd() const { return quantizeNSD_; }
24 int compress_data() const { return compressionLevel_; }
25 bool zlib() const { return zlib_; }
26 bool szip() const { return szip_; }
27 bool zstd() const { return zstd_; }
28 bool bz2() const { return bz2_; }
29 bool quantize() const { return quantizeNSD_ > 0; }
30
31 bool omit_nodesets() const { return omitNodesets_; }
32 bool omit_sidesets() const { return omitSidesets_; }
33 bool ints_64_bit() const { return ints64Bit_; }
34 bool ignore_coordinates() const { return ignoreCoordinates_; }
35 bool use_netcdf4() const { return useNetcdf4_; }
36 bool sort_times() const { return sortTimes_; }
37
38 double alive_value() const { return aliveValue_; }
39
40 double interpart_minimum_time_delta() const { return interpartMinimumTimeDelta_; }
41 StringIdVector global_var_names() const { return globalVarNames_; }
42 StringIdVector node_var_names() const { return nodeVarNames_; }
43 StringIdVector elem_var_names() const { return elemVarNames_; }
44 StringIdVector nset_var_names() const { return nsetVarNames_; }
45 StringIdVector sset_var_names() const { return ssetVarNames_; }
46
47 const std::string &element_status_variable() const { return elementStatusVariable_; }
48 const std::string &nodal_status_variable() const { return nodalStatusVariable_; }
49 const std::string &combined_mesh_status_variable() const { return meshCombineStatusVariable_; }
50
51 //! Dumps representation of data in this class to cerr
52 void dump(std::ostream &str) const;
53
54 static void show_version();
55
56 // Make this private eventually...
57 StringVector inputFiles_{};
58 std::string outputName_{};
59
60 private:
61 void enroll_options();
62
63 GetLongOption options_{}; //!< Options parsing
64
65 int debugLevel_{0};
66 int screenWidth_{0};
67 int compressionLevel_{0};
68 int quantizeNSD_{0};
69 bool zlib_{false};
70 bool szip_{false};
71 bool zstd_{false};
72 bool bz2_{false};
73 bool omitNodesets_{false};
74 bool omitSidesets_{false};
75 bool ints64Bit_{false};
76 bool ignoreCoordinates_{false};
77 bool useNetcdf4_{false};
78 bool sortTimes_{false};
79
80 double aliveValue_{-1.0};
81 double interpartMinimumTimeDelta_{0.0};
82
83 std::string elementStatusVariable_{};
84 std::string nodalStatusVariable_{};
85
86 // Mesh status variable to combine with elementStatusVariable_
87 std::string meshCombineStatusVariable_{};
88
89 StringIdVector globalVarNames_{};
90 StringIdVector nodeVarNames_{};
91 StringIdVector elemVarNames_{};
92 StringIdVector nsetVarNames_{};
93 StringIdVector ssetVarNames_{};
94 };
95 } // namespace Excn