| cloptions.c (3568c3e82964a3def751ac86e46777809ee904c5) | cloptions.c (3e0c2f3f098a94aa29497d10cd3cab29dd4ca6e3) |
|---|---|
| 1// Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors. 2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3// 4// SPDX-License-Identifier: BSD-2-Clause 5// 6// This file is part of CEED: http://github.com/ceed 7 8/// @file --- 135 unchanged lines hidden (view full) --- 144 app_ctx->turb_spanstats_viewer_interval, &app_ctx->turb_spanstats_viewer_interval, NULL)); 145 146 PetscCall(PetscOptionsViewer("-ts_monitor_turbulence_spanstats_viewer", "Viewer for the statistics", NULL, &app_ctx->turb_spanstats_viewer, 147 &app_ctx->turb_spanstats_viewer_format, &app_ctx->turb_spanstats_enable)); 148 149 PetscCall(PetscOptionsViewer("-ts_monitor_wall_force", "Viewer for force on each (no-slip) wall", NULL, &app_ctx->wall_forces.viewer, 150 &app_ctx->wall_forces.viewer_format, NULL)); 151 | 1// Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors. 2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3// 4// SPDX-License-Identifier: BSD-2-Clause 5// 6// This file is part of CEED: http://github.com/ceed 7 8/// @file --- 135 unchanged lines hidden (view full) --- 144 app_ctx->turb_spanstats_viewer_interval, &app_ctx->turb_spanstats_viewer_interval, NULL)); 145 146 PetscCall(PetscOptionsViewer("-ts_monitor_turbulence_spanstats_viewer", "Viewer for the statistics", NULL, &app_ctx->turb_spanstats_viewer, 147 &app_ctx->turb_spanstats_viewer_format, &app_ctx->turb_spanstats_enable)); 148 149 PetscCall(PetscOptionsViewer("-ts_monitor_wall_force", "Viewer for force on each (no-slip) wall", NULL, &app_ctx->wall_forces.viewer, 150 &app_ctx->wall_forces.viewer_format, NULL)); 151 |
| 152 // SGS Model Options 153 app_ctx->sgs_model_type = SGS_MODEL_NONE; 154 PetscCall(PetscOptionsEnum("-sgs_model_type", "Subgrid Stress Model type", NULL, SGSModelTypes, (PetscEnum)app_ctx->sgs_model_type, 155 (PetscEnum *)&app_ctx->sgs_model_type, NULL)); 156 | |
| 157 PetscCall(PetscOptionsBool("-diff_filter_monitor", "Enable differential filtering TSMonitor", NULL, app_ctx->diff_filter_monitor, 158 &app_ctx->diff_filter_monitor, NULL)); 159 160 // Mesh Transformation Options 161 app_ctx->mesh_transform_type = MESH_TRANSFORM_NONE; 162 PetscCall(PetscOptionsEnum("-mesh_transform", "Mesh transform to perform", NULL, MeshTransformTypes, (PetscEnum)app_ctx->mesh_transform_type, 163 (PetscEnum *)&app_ctx->mesh_transform_type, NULL)); 164 | 152 PetscCall(PetscOptionsBool("-diff_filter_monitor", "Enable differential filtering TSMonitor", NULL, app_ctx->diff_filter_monitor, 153 &app_ctx->diff_filter_monitor, NULL)); 154 155 // Mesh Transformation Options 156 app_ctx->mesh_transform_type = MESH_TRANSFORM_NONE; 157 PetscCall(PetscOptionsEnum("-mesh_transform", "Mesh transform to perform", NULL, MeshTransformTypes, (PetscEnum)app_ctx->mesh_transform_type, 158 (PetscEnum *)&app_ctx->mesh_transform_type, NULL)); 159 |
| 165 PetscCall( 166 PetscOptionsBool("-sgs_train_enable", "Enable Data-Driven SGS training", NULL, app_ctx->sgs_train_enable, &app_ctx->sgs_train_enable, NULL)); 167 | |
| 168 PetscOptionsEnd(); 169 PetscFunctionReturn(PETSC_SUCCESS); 170} | 160 PetscOptionsEnd(); 161 PetscFunctionReturn(PETSC_SUCCESS); 162} |