Skip to content
Open
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
5 changes: 5 additions & 0 deletions process/data_structure/global_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ class GlobalData:
convergence_parameter: float = 0.0
"""VMCON convergence parameter 'sum'"""

no_profiles: bool = False
"""Reduces the amount of output written to the MFile
by stopping detailed physics profiles from being written.
"""


CREATE_DICTS_FROM_DATACLASS = GlobalData
10 changes: 10 additions & 0 deletions process/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@
is_flag=True,
help="Run all summary plotting scripts for the output",
)
@click.option(
"--no-profiles",
is_flag=True,
help="Reduces the amount of output written to the MFile by removing "
"detailed physics profiles.",
)
@click.pass_context
def process_cli(
ctx,
Expand All @@ -195,6 +201,7 @@ def process_cli(
mfilejson,
update_obsolete,
full_output,
no_profiles,
):
"""
\b
Expand Down Expand Up @@ -223,6 +230,9 @@ def process_cli(
indat, solver, update_obsolete=update_obsolete, filepath_out=mfile_path
)

if no_profiles:
runtype.data.globals.no_profiles = True

runtype.run()

mfile_path = runtype.mfile_path
Expand Down
2 changes: 2 additions & 0 deletions process/models/physics/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -5895,6 +5895,8 @@ def calculate_spitzer_resistivity(

def output_detailed_physics(self):
"""Outputs detailed physics variables to file."""
if self.data.globals.no_profiles:
return
po.oheadr(self.outfile, "Detailed Plasma")

po.osubhd(self.outfile, "Debye lengths:")
Expand Down
Loading