CArl
Code Arlequin / C++ implementation
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
libmesh_apply_solution_input_parser.cpp
Go to the documentation of this file.
1
/*
2
* libmesh_apply_solution_input_parser.h
3
*
4
* Created on: Apr 16, 2017
5
* Author: Thiago Milanetto Schlittler
6
*/
7
8
#include "
libmesh_apply_solution_input_parser.h
"
9
10
namespace
carl
11
{
12
void
get_input_params
(GetPot& field_parser,
13
libmesh_apply_solution_input_params
& input_params) {
14
15
if
(field_parser.search(2,
"InputVector"
,
"--input-vec"
)) {
16
input_params.
input_vector
= field_parser.next(
17
input_params.
input_vector
);
18
}
else
{
19
homemade_error_msg
(
"Missing the displacement field vector!"
);
20
}
21
22
if
(field_parser.search(2,
"InputMesh"
,
"--input-mesh"
)) {
23
input_params.
input_mesh
= field_parser.next(
24
input_params.
input_mesh
);
25
}
else
{
26
homemade_error_msg
(
"Missing the input mesh!"
);
27
}
28
29
if
(field_parser.search(2,
"PhysicalParameters"
,
"--physical-params"
)) {
30
input_params.
physical_params_file
= field_parser.next(
31
input_params.
physical_params_file
);
32
}
else
{
33
homemade_error_msg
(
"Missing the physical params file!"
);
34
}
35
36
if
(field_parser.search(2,
"OutputMesh"
,
"--output-mesh"
)) {
37
input_params.
output_mesh
= field_parser.next(
38
input_params.
output_mesh
);
39
}
else
{
40
homemade_error_msg
(
"Missing the output mesh path!"
);
41
}
42
};
43
44
};
homemade_error_msg
#define homemade_error_msg(msg)
Definition:
common_header.h:73
carl::get_input_params
void get_input_params(GetPot &field_parser, feti_iterate_params &input_params)
Parser function for the coupled solver test programs.
Definition:
carl_feti_iterate_input_parser.cpp:13
carl::libmesh_apply_solution_input_params::output_mesh
std::string output_mesh
Path to the output mesh.
Definition:
libmesh_apply_solution_input_parser.h:21
carl::libmesh_apply_solution_input_params::physical_params_file
std::string physical_params_file
Physical parameters.
Definition:
libmesh_apply_solution_input_parser.h:20
carl::libmesh_apply_solution_input_params::input_vector
std::string input_vector
Path to the input vector containing the displacements.
Definition:
libmesh_apply_solution_input_parser.h:18
carl
Definition:
assemble_coupling.cpp:3
carl::libmesh_apply_solution_input_params::input_mesh
std::string input_mesh
Path to the mesh that will be deformed.
Definition:
libmesh_apply_solution_input_parser.h:19
libmesh_apply_solution_input_parser.h
carl::libmesh_apply_solution_input_params
Definition:
libmesh_apply_solution_input_parser.h:17
src
execs
ext_solver_libmesh
ext_solver_libmesh_common
libmesh_apply_solution_input_parser.cpp
Generated by
1.8.10