Skip to content

Commit

Permalink
Update examples/fluids/problems/sgs_dd_model.c
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy L Thompson <[email protected]>
  • Loading branch information
jrwrigh and jeremylt authored Mar 5, 2024
1 parent a38bb46 commit 2d10162
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/fluids/problems/sgs_dd_model.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ static PetscErrorCode SgsDDSetupNodalEvaluation_Sequential(Ceed ceed, User user,
PetscCall(PetscSectionSetFieldName(section, 0, ""));
for (CeedInt i = 0; i < sgs_dd_data->num_comp_inputs; i++) {
char component_name[PETSC_MAX_PATH_LEN];

PetscCall(PetscSNPrintf(component_name, sizeof component_name, "DataDrivenInput%" CeedInt_FMT, i + 1));
PetscCall(PetscSectionSetComponentName(section, 0, i, component_name));
}
Expand All @@ -274,6 +275,7 @@ static PetscErrorCode SgsDDSetupNodalEvaluation_Sequential(Ceed ceed, User user,
PetscCall(PetscSectionSetFieldName(section, 0, ""));
for (CeedInt i = 0; i < sgs_dd_data->num_comp_outputs; i++) {
char component_name[PETSC_MAX_PATH_LEN];

PetscCall(PetscSNPrintf(component_name, sizeof component_name, "DataDrivenOutput%" CeedInt_FMT, i + 1));
PetscCall(PetscSectionSetComponentName(section, 0, i, component_name));
}
Expand Down

0 comments on commit 2d10162

Please sign in to comment.