structs.h (af89791e6eee77bd50ffc7d7dc35ec06acf93a56) structs.h (de1229c50b0fa287ef0d97965becc5ec55ca5a76)
1#ifndef libceed_petsc_examples_structs_h
2#define libceed_petsc_examples_structs_h
3
4#include <ceed.h>
5#include <petsc.h>
6
7// -----------------------------------------------------------------------------
8// PETSc Operator Structs

--- 43 unchanged lines hidden (view full) ---

52 const char *setup_geo_loc, *setup_rhs_loc, *apply_loc, *error_loc;
53 CeedEvalMode in_mode, out_mode;
54 CeedQuadMode q_mode;
55 PetscBool enforce_bc;
56 PetscErrorCode (*bc_func)(PetscInt, PetscReal, const PetscReal *,
57 PetscInt, PetscScalar *, void *);
58} BPData;
59
1#ifndef libceed_petsc_examples_structs_h
2#define libceed_petsc_examples_structs_h
3
4#include <ceed.h>
5#include <petsc.h>
6
7// -----------------------------------------------------------------------------
8// PETSc Operator Structs

--- 43 unchanged lines hidden (view full) ---

52 const char *setup_geo_loc, *setup_rhs_loc, *apply_loc, *error_loc;
53 CeedEvalMode in_mode, out_mode;
54 CeedQuadMode q_mode;
55 PetscBool enforce_bc;
56 PetscErrorCode (*bc_func)(PetscInt, PetscReal, const PetscReal *,
57 PetscInt, PetscScalar *, void *);
58} BPData;
59
60// BP options
61typedef enum {
62 CEED_BP1 = 0, CEED_BP2 = 1, CEED_BP3 = 2,
63 CEED_BP4 = 3, CEED_BP5 = 4, CEED_BP6 = 5
64} BPType;
65
66// -----------------------------------------------------------------------------
67// Parameter structure for running problems
68// -----------------------------------------------------------------------------
69typedef struct RunParams_ *RunParams;
70struct RunParams_ {
71 MPI_Comm comm;
72 PetscBool test_mode, read_mesh, user_l_nodes, write_solution, simplex;
73 char *filename, *hostname;
74 PetscInt local_nodes, degree, q_extra, dim, num_comp_u, *mesh_elem;
75 PetscInt ksp_max_it_clip[2];
76 PetscMPIInt ranks_per_node;
77 BPType bp_choice;
78 PetscLogStage solve_stage;
79};
80
60#endif // libceed_petsc_examples_structs_h
81#endif // libceed_petsc_examples_structs_h