You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ad/ADParser.cpp
+30-9Lines changed: 30 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -72,17 +72,38 @@ ADParser::~ADParser() {
72
72
73
73
intADParser::beginStep(bool verbose) {
74
74
if (m_opened){
75
-
adios2::StepStatus status = m_reader.BeginStep(adios2::StepMode::Read, float(m_beginstep_timeout));
76
-
if (status == adios2::StepStatus::OK){
77
-
m_current_step++;
78
-
}else{
79
-
if(status == adios2::StepStatus::NotReady){ recoverable_error("ADParser::beginStep : ADIOS2::BeginStep timed out waiting for next step to be ready\n"); }
80
-
elseif(status == adios2::StepStatus::EndOfStream){ headProgressStream(m_rank) << "ADParser::beginStep rank 0 detected end of data stream" << std::endl; }
81
-
else{ recoverable_error("ADParser::beginStep : ADIOS2::BeginStep returned an unknown error\n"); }
82
-
m_status = false;
83
-
m_current_step = -1;
75
+
typedef std::chrono::high_resolution_clock Clock;
76
+
auto start = Clock::now();
77
+
78
+
while(1){
79
+
adios2::StepStatus status = m_reader.BeginStep(adios2::StepMode::Read, 0.0f);
0 commit comments