-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parsing rom config option to Control.
- Loading branch information
1 parent
c752f1d
commit ee3a03d
Showing
3 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) 2017, Lawrence Livermore National Security, LLC and | ||
// UT-Battelle, LLC. | ||
// Produced at the Lawrence Livermore National Laboratory and the Oak Ridge | ||
// National Laboratory. | ||
// LLNL-CODE-743438 | ||
// All rights reserved. | ||
// This file is part of MGmol. For details, see https://github.com/llnl/mgmol. | ||
// Please also read this link https://github.com/llnl/mgmol/LICENSE | ||
|
||
#ifndef ROM_CONTROL_H | ||
#define ROM_CONTROL_H | ||
|
||
#include <cassert> | ||
#include <fstream> | ||
#include <iostream> | ||
#include <string> | ||
#include <vector> | ||
|
||
enum class ROMStage | ||
{ | ||
OFFLINE, | ||
ONLINE, | ||
RESTORE, // TODO(kevin): what stage is this? | ||
BUILD, | ||
UNSUPPORTED | ||
}; | ||
|
||
/* Stored as a private member variable of Control class */ | ||
struct ROMPrivateOptions | ||
{ | ||
ROMStage rom_stage = ROMStage::UNSUPPORTED; | ||
|
||
std::string restart_file_fmt = ""; | ||
int restart_file_minidx = -1; | ||
int restart_file_maxidx = -1; | ||
std::string basis_file = ""; | ||
|
||
/* save librom snapshot matrix at FOM simulation. */ | ||
bool save_librom_snapshot = false; | ||
}; | ||
|
||
#endif // ROM_CONTROL_H |