xref: /libCEED/examples/solids/problems/problems.c (revision 019b76820d7ff306c177822c4e76ffe5939c204b)
1 // Copyright (c) 2017-2022, 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 #include <ceed.h>
9 #include <petsc.h>
10 #include "../problems/problems.h"
11 
12 PetscErrorCode RegisterProblems(ProblemFunctions problem_functions) {
13   PetscErrorCode ierr;
14 
15   PetscFunctionBegin;
16 
17   SOLIDS_PROBLEM_REGISTER(problem_functions, "Linear", ElasLinear, NH);
18   SOLIDS_PROBLEM_REGISTER(problem_functions, "SS-NH", ElasSSNH, NH);
19   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSCurrent-NH1", ElasFSCurrentNH1,
20                           NH);
21   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSCurrent-NH2", ElasFSCurrentNH2,
22                           NH);
23   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-NH1", ElasFSInitialNH1,
24                           NH);
25   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-NH2", ElasFSInitialNH2,
26                           NH);
27   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-MR1", ElasFSInitialMR1,
28                           MR);
29 
30   PetscFunctionReturn(0);
31 };
32