xref: /libCEED/examples/solids/problems/problems.c (revision c8a555312a5c51c13b0a524d101ec938ad17e6be)
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 "../problems/problems.h"
9 
10 #include <ceed.h>
11 #include <petscsys.h>
12 
13 PetscErrorCode RegisterProblems(ProblemFunctions problem_functions) {
14   PetscFunctionBegin;
15 
16   SOLIDS_PROBLEM_REGISTER(problem_functions, "Linear", ElasLinear, NH);
17   SOLIDS_PROBLEM_REGISTER(problem_functions, "SS-NH", ElasSSNH, NH);
18   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSCurrent-NH1", ElasFSCurrentNH1, NH);
19   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSCurrent-NH2", ElasFSCurrentNH2, NH);
20   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-NH1", ElasFSInitialNH1, NH);
21   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-NH2", ElasFSInitialNH2, NH);
22   SOLIDS_PROBLEM_REGISTER(problem_functions, "FSInitial-MR1", ElasFSInitialMR1, MR);
23 
24   PetscFunctionReturn(PETSC_SUCCESS);
25 };
26