Skip to content

Commit fab729d

Browse files
committed
make format
1 parent bd1b2c3 commit fab729d

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

examples/Hdiv-mixed/problems/darcy2d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "../qfunctions/darcy-true-quartic2d.h"
2525
#include "../qfunctions/darcy-true2d.h"
2626
#include "../qfunctions/post-processing2d.h"
27-
//#include "../qfunctions/pressure-boundary2d.h"
27+
// #include "../qfunctions/pressure-boundary2d.h"
2828

2929
PetscErrorCode Hdiv_DARCY2D(Ceed ceed, ProblemData problem_data, DM dm, void *ctx) {
3030
AppCtx app_ctx = *(AppCtx *)ctx;

examples/Hdiv-mixed/problems/darcy3d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "../qfunctions/darcy-system3d.h"
2323
#include "../qfunctions/darcy-true3d.h"
2424
#include "../qfunctions/post-processing3d.h"
25-
//#include "../qfunctions/pressure-boundary3d.h"
25+
// #include "../qfunctions/pressure-boundary3d.h"
2626

2727
PetscErrorCode Hdiv_DARCY3D(Ceed ceed, ProblemData problem_data, DM dm, void *ctx) {
2828
AppCtx app_ctx = *(AppCtx *)ctx;

examples/Hdiv-mixed/problems/richard2d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "../qfunctions/richard-ics2d.h"
2424
#include "../qfunctions/richard-system2d.h"
2525
#include "../qfunctions/richard-true2d.h"
26-
//#include "../qfunctions/pressure-boundary2d.h"
26+
// #include "../qfunctions/pressure-boundary2d.h"
2727
#include "petscsystypes.h"
2828

2929
PetscErrorCode Hdiv_RICHARD2D(Ceed ceed, ProblemData problem_data, DM dm, void *ctx) {

examples/Hdiv-mixed/problems/richard3d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "../qfunctions/richard-ics3d.h"
2424
#include "../qfunctions/richard-system3d.h"
2525
#include "../qfunctions/richard-true3d.h"
26-
//#include "../qfunctions/pressure-boundary2d.h"
26+
// #include "../qfunctions/pressure-boundary2d.h"
2727
#include "petscsystypes.h"
2828

2929
PetscErrorCode Hdiv_RICHARD3D(Ceed ceed, ProblemData problem_data, DM dm, void *ctx) {

examples/Hdiv-mixed/src/setup-libceed.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ PetscErrorCode SetupLibceed(DM dm, DM dm_u0, DM dm_p0, DM dm_H1, Ceed ceed, AppC
172172
CeedOperatorCreate(ceed, qf_true, CEED_QFUNCTION_NONE, CEED_QFUNCTION_NONE, &op_true);
173173
if (problem_data->has_ts) {
174174
double final_time = app_ctx->t_final;
175-
CeedOperatorContextGetFieldLabel(op_true, "final_time", &app_ctx->ctx_residual_ut->final_time_label);
176-
CeedOperatorContextSetDouble(op_true, app_ctx->ctx_residual_ut->final_time_label, &final_time);
175+
CeedOperatorGetContextFieldLabel(op_true, "final_time", &app_ctx->ctx_residual_ut->final_time_label);
176+
CeedOperatorSetContextDouble(op_true, app_ctx->ctx_residual_ut->final_time_label, &final_time);
177177
}
178178
CeedOperatorSetField(op_true, "x", ceed_data->elem_restr_x, ceed_data->basis_x, ceed_data->x_coord);
179179
CeedOperatorSetField(op_true, "true force", ceed_data->elem_restr_p_i, CEED_BASIS_COLLOCATED, true_force);
@@ -309,7 +309,7 @@ PetscErrorCode SetupLibceed(DM dm, DM dm_u0, DM dm_p0, DM dm_H1, Ceed ceed, AppC
309309
CeedOperatorCreate(ceed, qf_residual, CEED_QFUNCTION_NONE, CEED_QFUNCTION_NONE, &op_residual);
310310
if (problem_data->has_ts) {
311311
// double t = app_ctx->ctx_residual_ut->t;
312-
CeedOperatorContextGetFieldLabel(op_residual, "time", &app_ctx->ctx_residual_ut->solution_time_label);
312+
CeedOperatorGetContextFieldLabel(op_residual, "time", &app_ctx->ctx_residual_ut->solution_time_label);
313313
// CeedOperatorContextGetFieldLabel(op_residual, "time_step",
314314
// &app_ctx->ctx_residual_ut->timestep_label);
315315
// CeedOperatorContextSetDouble(op_residual,

examples/Hdiv-mixed/src/setup-matops.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "../include/setup-matops.h"
2+
23
#include <stdio.h>
34

45
#include "../include/setup-libceed.h"

examples/Hdiv-mixed/src/setup-ts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ PetscErrorCode TSFormIResidual(TS ts, PetscReal time, Vec X, Vec X_t, Vec Y, voi
224224

225225
// Update time dependent data
226226
if (ctx->t != time) {
227-
CeedOperatorContextSetDouble(ctx->op_apply, ctx->solution_time_label, &time);
227+
CeedOperatorSetContextDouble(ctx->op_apply, ctx->solution_time_label, &time);
228228
ctx->t = time;
229229
}
230230
// PetscScalar dt;

0 commit comments

Comments
 (0)