forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change name of conserve_water namelist option in diag_manager_mod
The conserve_water namelist option in diag_manager_mod caused confusion with external users of the diag_manager. The name is changed in this commit to help clarify what the option did. Documentation has also been added. Fixes mom-ocean#30
- Loading branch information
Showing
3 changed files
with
17 additions
and
6 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include <fms_platform.h> | ||
s#include <fms_platform.h> | ||
|
||
MODULE diag_util_mod | ||
! <CONTACT EMAIL="[email protected]"> | ||
|
@@ -33,7 +33,7 @@ MODULE diag_util_mod | |
& base_second, num_files, max_files, max_fields_per_file, max_out_per_in_field,& | ||
& max_input_fields,num_input_fields, max_output_fields, num_output_fields, coord_type,& | ||
& mix_snapshot_average_fields, global_descriptor, CMOR_MISSING_VALUE, use_cmor, pack_size,& | ||
& debug_diag_manager, conserve_water, output_field_type, max_field_attributes, max_file_attributes,& | ||
& debug_diag_manager, flush_nc_files, output_field_type, max_field_attributes, max_file_attributes,& | ||
& file_type, prepend_date, region_out_use_alt_value, GLO_REG_VAL, GLO_REG_VAL_ALT,& | ||
& DIAG_FIELD_NOT_FOUND, diag_init_time | ||
USE diag_axis_mod, ONLY: get_diag_axis_data, get_axis_global_length, get_diag_axis_cart,& | ||
|
@@ -2316,7 +2316,7 @@ SUBROUTINE diag_data_out(file, field, dat, time, final_call_in, static_write_in) | |
files(file)%last_flush = time | ||
END IF | ||
ELSE | ||
IF ( time > files(file)%last_flush .AND. (.NOT.conserve_water.OR.debug_diag_manager) ) THEN | ||
IF ( time > files(file)%last_flush .AND. (flush_nc_files.OR.debug_diag_manager) ) THEN | ||
CALL diag_flush(files(file)%file_unit) | ||
files(file)%last_flush = time | ||
END IF | ||
|