We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc9cad3 + 5d4f3a2 commit a8edb68Copy full SHA for a8edb68
4 files changed
examples/fluids/include/bc_definition.h
@@ -34,7 +34,7 @@ struct _p_BCDefinition {
34
**/
35
#define PetscOptionsBCDefinition(opt, text, man, name, bc_def, set) \
36
PetscOptionsBCDefinition_Private(PetscOptionsObject, opt, text, man, name, bc_def, set)
37
-PetscErrorCode PetscOptionsBCDefinition_Private(PetscOptionItems *PetscOptionsObject, const char opt[], const char text[], const char man[],
+PetscErrorCode PetscOptionsBCDefinition_Private(PetscOptionItems PetscOptionsObject, const char opt[], const char text[], const char man[],
38
const char name[], BCDefinition *bc_def, PetscBool *set);
39
40
PetscErrorCode BCDefinitionCreate(const char *name, PetscInt num_label_values, PetscInt label_values[], BCDefinition *bc_def);
examples/fluids/qfunctions/stg_shur14.h
@@ -310,8 +310,8 @@ CEED_QFUNCTION(ICsStg)(void *ctx, CeedInt Q, const CeedScalar *const *in, CeedSc
310
for (CeedInt j = 0; j < 3; j++) u[j] = ubar[j];
311
}
312
313
- CeedScalar Y[5] = {P0, u[0], u[1], u[2], theta0}, q[5];
314
- State s = StateFromY(gas, Y);
+ CeedScalar Y[5] = {P0, u[0], u[1], u[2], theta0}, q[5] = {0.};
+ State s = StateFromY(gas, Y);
315
StateToQ(gas, s, q, gas->state_var);
316
for (CeedInt j = 0; j < 5; j++) {
317
q0[j][i] = q[j];
@@ -508,8 +508,8 @@ CEED_QFUNCTION(StgShur14InflowStrongQF)(void *ctx, CeedInt Q, const CeedScalar *
508
509
510
511
512
513
514
switch (gas->state_var) {
515
case STATEVAR_CONSERVATIVE:
examples/fluids/src/bc_definition.c
@@ -91,7 +91,7 @@ PetscErrorCode BCDefinitionGetEssential(BCDefinition bc_def, PetscInt *num_essen
91
#define LABEL_ARRAY_SIZE 256
92
93
// @brief See `PetscOptionsBCDefinition`
94
95
const char name[], BCDefinition *bc_def, PetscBool *set) {
96
PetscInt num_label_values = LABEL_ARRAY_SIZE, label_values[LABEL_ARRAY_SIZE] = {0};
97
examples/fluids/src/misc.c
@@ -95,6 +95,7 @@ PetscErrorCode DMPlexInsertBoundaryValues_FromICs(DM dm, PetscBool insert_essent
static PetscErrorCode BinaryReadIntoInt(PetscViewer viewer, PetscInt *out, PetscDataType file_type) {
PetscFunctionBeginUser;
98
+ *out = -13; // appease the overzealous GCC compiler warning Gods
99
if (file_type == PETSC_INT32) {
100
PetscInt32 val;
101
PetscCall(PetscViewerBinaryRead(viewer, &val, 1, NULL, PETSC_INT32));
0 commit comments