Skip to content

Commit 8b5f23a

Browse files
committed
Write diagnostics with averaging
1 parent 6c400a2 commit 8b5f23a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/Xios.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,9 @@ void Xios::createField(const std::string fieldId)
950950
if (configGetInputRestartFieldNames().count(fieldId) > 0 || fieldId == maskName) {
951951
// Restarts are read "once" and the mask is fixed so only written once
952952
operation = "once";
953+
} else if (configGetDiagnosticFieldNames().count(fieldId) > 0) {
954+
// Diagonstics are averaged over the diagnostic output period
955+
operation = "average";
953956
} else {
954957
// Otherwise, read/write all timesteps without post-processing
955958
operation = "instant";

0 commit comments

Comments
 (0)