Skip to content

Commit 6c2ac72

Browse files
authored
Merge pull request #149 from AetherModel/restart_fix
Restart fix
2 parents 502a636 + 1370867 commit 6c2ac72

23 files changed

+747
-511
lines changed

doc/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ cd run.test
111111
The output should LOOK LIKE THIS
112112

113113
For more details about running Aether, see the documentation about creating and
114-
modifying input files HERE.
114+
modifying input files in the document running_aether.md.

include/output.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,12 @@ class OutputContainer {
133133
\brief write a binary file with the information in the container
134134
**/
135135
bool write_container_binary();
136-
136+
137+
/**********************************************************************
138+
\brief read a binary file with the information into a container
139+
**/
140+
bool read_container_binary();
141+
137142
/**********************************************************************
138143
\brief write a netcdf file with the information in the container
139144
**/
@@ -142,7 +147,7 @@ class OutputContainer {
142147
/**********************************************************************
143148
\brief read from a file an load into the container
144149
**/
145-
void read();
150+
bool read();
146151

147152
/**********************************************************************
148153
\brief display information contained in the container
@@ -152,7 +157,7 @@ class OutputContainer {
152157
/**********************************************************************
153158
\brief read a netcdf file - put the information in the container
154159
**/
155-
int read_container_netcdf();
160+
bool read_container_netcdf();
156161

157162
/**********************************************************************
158163
\brief clears the vector of variables

include/times.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ class Times {
8282
**/
8383
double get_current();
8484

85+
/**************************************************************
86+
\brief Sets the start time at the start of the time loop
87+
**/
88+
void set_start_time_loop();
89+
8590
/**************************************************************
8691
\brief Returns the end time in seconds since ref date
8792
**/
@@ -237,6 +242,9 @@ class Times {
237242
/// This is the system time at the start of the simulation
238243
time_t sys_time_start;
239244

245+
/// This is the system time at the start of time loop
246+
time_t sys_time_start_time_loop;
247+
240248
/// This is the current system time of the simulation
241249
time_t sys_time_current;
242250

share/run/UA/inputs/defaults.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
"species" : ["O2", "O2+"]},
115115

116116
"Outputs" : {
117-
"type" : ["neutrals"],
118-
"dt" : [900, 0.0]},
117+
"type" : ["states", "grid"],
118+
"dt" : [900, -1]},
119119

120120
"Restart" : {
121121
"do" : false,

0 commit comments

Comments
 (0)