xref: /libCEED/examples/solids/problems/problems.c (revision 3d8e882215d238700cdceb37404f76ca7fa24eaa)
1*3d8e8822SJeremy L Thompson // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
2*3d8e8822SJeremy L Thompson // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3*3d8e8822SJeremy L Thompson //
4*3d8e8822SJeremy L Thompson // SPDX-License-Identifier: BSD-2-Clause
5*3d8e8822SJeremy L Thompson //
6*3d8e8822SJeremy L Thompson // This file is part of CEED:  http://github.com/ceed
7*3d8e8822SJeremy L Thompson 
85754ecacSJeremy L Thompson #include <ceed.h>
95754ecacSJeremy L Thompson #include <petsc.h>
105754ecacSJeremy L Thompson #include "../problems/problems.h"
115754ecacSJeremy L Thompson 
125754ecacSJeremy L Thompson PetscErrorCode RegisterProblems(ProblemFunctions problem_functions) {
135754ecacSJeremy L Thompson   PetscErrorCode ierr;
145754ecacSJeremy L Thompson 
155754ecacSJeremy L Thompson   PetscFunctionBegin;
165754ecacSJeremy L Thompson 
175754ecacSJeremy L Thompson   SOLIDS_PROBLEM_REGISTER(problem_functions, "Linear", ElasLinear, NH);
185754ecacSJeremy L Thompson   SOLIDS_PROBLEM_REGISTER(problem_functions, "SS-NH", ElasSSNH, NH);
195754ecacSJeremy L Thompson   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSCurrent-NH1", ElasFSCurrentNH1,
205754ecacSJeremy L Thompson                           NH);
215754ecacSJeremy L Thompson   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSCurrent-NH2", ElasFSCurrentNH2,
225754ecacSJeremy L Thompson                           NH);
235754ecacSJeremy L Thompson   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-NH1", ElasFSInitialNH1,
245754ecacSJeremy L Thompson                           NH);
255754ecacSJeremy L Thompson   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-NH2", ElasFSInitialNH2,
265754ecacSJeremy L Thompson                           NH);
275754ecacSJeremy L Thompson   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-MR1", ElasFSInitialMR1,
285754ecacSJeremy L Thompson                           MR);
295754ecacSJeremy L Thompson 
305754ecacSJeremy L Thompson   PetscFunctionReturn(0);
315754ecacSJeremy L Thompson };
32