| 1 |
/* |
| 2 |
* Copyright(C) 1999-, 20242024, National Technology & Engineering Solutions |
| 3 |
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 4 |
* NTESS, the U.S. Government retains certain rights in this software. |
| 5 |
* |
| 6 |
* See packages/seacas/LICENSE for details |
| 7 |
*/ |
| 8 |
#pragma once |
| 9 |
|
| 10 |
#include <string> |
| 11 |
#include <vector> |
| 12 |
|
| 13 |
namespace Excn { |
| 14 |
|
| 15 |
class SystemInterface; |
| 16 |
class ExodusFile |
| 17 |
{ |
| 18 |
public: |
| 19 |
explicit ExodusFile(int processor); |
| 20 |
~ExodusFile(); |
| 21 |
ExodusFile(const ExodusFile &) = delete; |
| 22 |
ExodusFile operator=(const ExodusFile &) = delete; |
| 23 |
|
| 24 |
static void initialize(const SystemInterface &si, int start_part, int part_count, int cycle, |
| 25 |
bool joining_subcycle); |
| 26 |
static void create_output(const SystemInterface &si, int cycle); |
| 27 |
static void close_all(); |
| 28 |
|
| 29 |
static int set_active_change_set(int cs); |
| 30 |
static int get_active_change_set() { return activeChangeSet_; } |
| 31 |
static int get_change_set_count() { return changeSetCount_; } |
| 32 |
|
| 33 |
static int output(); |
| 34 |
static int io_word_size() { return ioWordSize_; } |
| 35 |
operator int() const; |
| 36 |
static int max_name_length() { return maximumNameLength_; } |
| 37 |
static void handle_temporary_files(bool delete_them); |
| 38 |
static void unlink_input_files(); |
| 39 |
|
| 40 |
private: |
| 41 |
static void set_change_set_count(int exoid); |
| 42 |
|
| 43 |
int myProcessor_; |
| 44 |
static std::vector<std::string> filenames_; |
| 45 |
static std::vector<int> fileids_; |
| 46 |
static std::string outputFilename_; |
| 47 |
static int processorCount_; |
| 48 |
static int partCount_; |
| 49 |
static int startPart_; |
| 50 |
static int outputId_; |
| 51 |
static int ioWordSize_; |
| 52 |
static int cpuWordSize_; |
| 53 |
static int maximumNameLength_; |
| 54 |
static int mode64bit_; |
| 55 |
static int changeSetCount_; |
| 56 |
static int activeChangeSet_; |
| 57 |
static int activeOutputChangeSet_; |
| 58 |
static bool keepOpen_; |
| 59 |
static bool verifyValidFile_; |
| 60 |
static bool onlySelectedChangeSet_; |
| 61 |
}; |
| 62 |
} // namespace Excn |