bc_slip.c (cce3ee4efcaa7914b8a0b517c757fe3477daefe6) bc_slip.c (a2d72b6f1ed489cbeb0eb5f72cf8bf977e7ff50a)
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

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

29 problem->apply_slip_jacobian.qfunction_loc = Slip_Jacobian_Conserv_loc;
30 break;
31 case STATEVAR_PRIMITIVE:
32 problem->apply_slip.qfunction = Slip_Prim;
33 problem->apply_slip.qfunction_loc = Slip_Prim_loc;
34 problem->apply_slip_jacobian.qfunction = Slip_Jacobian_Prim;
35 problem->apply_slip_jacobian.qfunction_loc = Slip_Jacobian_Prim_loc;
36 break;
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

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

29 problem->apply_slip_jacobian.qfunction_loc = Slip_Jacobian_Conserv_loc;
30 break;
31 case STATEVAR_PRIMITIVE:
32 problem->apply_slip.qfunction = Slip_Prim;
33 problem->apply_slip.qfunction_loc = Slip_Prim_loc;
34 problem->apply_slip_jacobian.qfunction = Slip_Jacobian_Prim;
35 problem->apply_slip_jacobian.qfunction_loc = Slip_Jacobian_Prim_loc;
36 break;
37 case STATEVAR_ENTROPY:
38 problem->apply_slip.qfunction = Slip_Entropy;
39 problem->apply_slip.qfunction_loc = Slip_Entropy_loc;
40 problem->apply_slip_jacobian.qfunction = Slip_Jacobian_Entropy;
41 problem->apply_slip_jacobian.qfunction_loc = Slip_Jacobian_Entropy_loc;
42 break;
37 }
38
39 PetscCallCeed(ceed, CeedQFunctionContextReferenceCopy(newtonian_ig_qfctx, &problem->apply_slip.qfunction_context));
40 PetscCallCeed(ceed, CeedQFunctionContextReferenceCopy(newtonian_ig_qfctx, &problem->apply_slip_jacobian.qfunction_context));
41 PetscFunctionReturn(PETSC_SUCCESS);
42}
43 }
44
45 PetscCallCeed(ceed, CeedQFunctionContextReferenceCopy(newtonian_ig_qfctx, &problem->apply_slip.qfunction_context));
46 PetscCallCeed(ceed, CeedQFunctionContextReferenceCopy(newtonian_ig_qfctx, &problem->apply_slip_jacobian.qfunction_context));
47 PetscFunctionReturn(PETSC_SUCCESS);
48}