Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/data/write_init_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ def write_phys_read_subroutine(outfile, host_dict, host_vars, host_imports,
# Handle the case where the required variable is a constituent
outfile.write("case (const_idx)", 5)
outfile.blank_line()
outfile.comment("If an index was found in the constituent hash table, then do nothing, this will be handled later", 6)
outfile.comment("If an index was found in the constituent hash table, then do nothing, this will be handled later.", 6)
outfile.blank_line()

# start default case steps:
Expand Down Expand Up @@ -1412,7 +1412,13 @@ def write_phys_check_subroutine(outfile, host_dict, host_vars, host_imports,
# Skip constituent variables:
outfile.write("case (const_idx)", 5)
outfile.blank_line()
outfile.comment("If variable is a constituent, then do nothing. We'll handle these later", 6)
outfile.comment("If variable is a constituent, then do nothing. We'll handle these later.", 6)
outfile.blank_line()

# Skip already initialized variables:
outfile.write("case (init_mark_idx)", 5)
outfile.blank_line()
outfile.comment("If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme. There is nothing we can check against.", 6)
outfile.blank_line()

# Generate error message if required variable isn't found:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -325,7 +325,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -313,7 +313,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -318,7 +318,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -309,7 +309,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -320,7 +320,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ subroutine physics_read_data(file, suite_names, timestep, read_initialized_varia

case (const_idx)

! If an index was found in the constituent hash table, then do nothing, this will be handled later
! If an index was found in the constituent hash table, then do nothing, this will be handled later.

case default

Expand Down Expand Up @@ -317,7 +317,12 @@ subroutine physics_check_data(file_name, suite_names, timestep, min_difference,

case (const_idx)

! If variable is a constituent, then do nothing. We'll handle these later
! If variable is a constituent, then do nothing. We'll handle these later.

case (init_mark_idx)

! If variable only has an initial_value but not read from file, then do nothing, even if it is modified by the physics scheme.
! There is nothing we can check against.

case (no_exist_idx)

Expand Down