OpenCMISS-Iron Internal API Documentation
|
Input routines for FieldML. More...
Functions/Subroutines | |
subroutine | fieldml_assert_is_in (FIELDML_INFO, ERR, ERROR,) |
Asserts that the FieldML Info is associated and created for input. More... | |
subroutine | fieldml_input_get_basis_connectivity_info (FIELDML_INFO, BASIS_HANDLE, PARAM_ARG_HANDLE, CONNECTIVITY_HANDLE, LAYOUT_HANDLE, ERR, ERROR,) |
Determines the connectivity evaluator and layout argument for the given basis. More... | |
subroutine | fieldml_input_get_basis_collapse (NAME, COLLAPSE, ERR, ERROR,) |
Determine the basis collapse parameters from the given evaluator's name. More... | |
subroutine | fieldml_input_get_basis_info (FIELDML_INFO, BASIS_HANDLE, CONNECTIVITY_HANDLE, LAYOUT_HANDLE, BASISTYPE, BASIS_INTERPOLATIONS, COLLAPSE, ERR, ERROR,) |
Determines the basis configuration from the given basis evaluator. More... | |
logical function | fieldml_input_is_known_basis (FIELDML_INFO, BASIS_HANDLE, ERR, ERROR) |
Determines whether or not the given basis evaluator is known to OpenCMISS. More... | |
logical function | fieldml_input_is_template_compatible (FIELDML_INFO, COMPONENT_HANDLE, ELEMENT_TYPE, ERR, ERROR) |
Determines whether or not the given evaluator is a recognisable mesh component evaluator. More... | |
subroutine | fieldml_input_check_field_compatible (FIELDML_INFO, FIELD_HANDLE, ELEMENT_TYPE, ERR, ERROR,) |
Determines whether or not the given field evaluator can be parsed as an OpenCMISS field. More... | |
subroutine, public | fieldmlinput_coordinatesystemcreatestart (FIELDML_INFO, EVALUATOR_NAME, COORDINATE_SYSTEM, USER_NUMBER, ERR, ERROR,) |
Creates an OpenCMISS coordinate system using relevant parameters from FieldML. Does not call CreateFinish. More... | |
subroutine, public | fieldml_input_nodes_create_start (FIELDML_INFO, NODES_ARGUMENT_NAME, REGION, NODES, ERR, ERROR,) |
Creates an OpenCMISS nodes object using relevant parameters from FieldML. Does not call CreateFinish. More... | |
subroutine, public | fieldml_input_mesh_create_start (FIELDML_INFO, MESH_ARGUMENT_NAME, MESH, MESH_NUMBER, REGION, ERR, ERROR,) |
Creates an OpenCMISS mesh using relevant parameters from FieldML. Does not call CreateFinish. More... | |
subroutine, public | fieldml_input_basis_create_start (FIELDML_INFO, EVALUATOR_NAME, USER_NUMBER, BASIS, ERR, ERROR,) |
Creates an OpenCMISS basis object using relevant parameters from FieldML. Does not call CreateFinish. More... | |
subroutine, public | fieldml_input_initialise_from_file (FIELDML_INFO, FILENAME, ERR, ERROR,) |
Initialize the given FieldML parsing state from the given FieldML file. More... | |
subroutine | fieldml_input_read_order (FIELDML_INFO, ORDER_HANDLE, ORDER, COUNT, ERR, ERROR,) |
Reads an ensemble ordering using the given data source. More... | |
subroutine | fieldml_input_reorder (INPUT_BUFFER, ORDER, COUNT, OUTPUT_BUFFER, ERR, ERROR,) |
Reorder the given values according to the given ordering. More... | |
subroutine, public | fieldml_input_create_mesh_component (FIELDML_INFO, MESH, COMPONENT_NUMBER, EVALUATOR_NAME, ERR, ERROR,) |
Creates an OpenCMISS mesh component using relevant parameters from FieldML. Does not call CreateFinish. More... | |
subroutine, public | fieldml_input_field_create_start (FIELDML_INFO, REGION, DECOMPOSITION, FIELD_NUMBER, FIELD, VARIABLE_TYPE, EVALUATOR_NAME, ERR, ERROR,) |
Creates an OpenCMISS field using relevant parameters from FieldML. Does not call CreateFinish. More... | |
subroutine, public | fieldml_input_field_parameters_update (FIELDML_INFO, EVALUATOR_NAME, FIELD, VARIABLE_TYPE, SET_TYPE, ERR, ERROR,) |
Inputs from a FieldML file the parameters for a field variable parameter set. More... | |
subroutine | fieldmlinput_fieldnodalparametersupdate (FIELDML_INFO, EVALUATOR_NAME, FIELD, VARIABLE_TYPE, SET_TYPE, ERR, ERROR,) |
Update the given field's nodal parameters using the given parameter evaluator. More... | |
Input routines for FieldML.
|
private |
Asserts that the FieldML Info is associated and created for input.
fieldml_info | The FieldML parsing state. | |
[out] | err | The error code |
[out] | error | The error string. |
Definition at line 89 of file fieldml_input_routines.f90.
References base_routines::enters(), and base_routines::exits().
Referenced by fieldml_input_basis_create_start(), fieldml_input_create_mesh_component(), fieldml_input_field_create_start(), fieldml_input_mesh_create_start(), fieldml_input_nodes_create_start(), and fieldmlinput_coordinatesystemcreatestart().
subroutine, public fieldml_input_routines::fieldml_input_basis_create_start | ( | type(fieldml_io_type), pointer | FIELDML_INFO, |
type(varying_string), intent(in) | EVALUATOR_NAME, | ||
integer(intg), intent(in) | USER_NUMBER, | ||
type(basis_type), intent(inout), pointer | BASIS, | ||
integer(intg), intent(out) | ERR, | ||
type(varying_string), intent(out) | ERROR | ||
) |
Creates an OpenCMISS basis object using relevant parameters from FieldML. Does not call CreateFinish.
fieldml_info | The FieldML parsing state. | |
[in] | evaluator_name | The name of the basis evaluator. |
[in] | user_number | The user number to assign to the basis. |
[in,out] | basis | The OpenCMISS basis object to create. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 734 of file fieldml_input_routines.f90.
References basis_routines::basis_create_start(), base_routines::enters(), base_routines::exits(), fieldml_assert_is_in(), and fieldml_input_get_basis_info().
|
private |
Determines whether or not the given field evaluator can be parsed as an OpenCMISS field.
[in] | fieldml_info | The FieldML parsing state. |
[in] | field_handle | The field evaluator handle. |
[in] | element_type | The element ensemble type. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 501 of file fieldml_input_routines.f90.
References base_routines::enters(), and base_routines::exits().
Referenced by fieldml_input_field_create_start().
subroutine, public fieldml_input_routines::fieldml_input_create_mesh_component | ( | type(fieldml_io_type), pointer | FIELDML_INFO, |
type(mesh_type), intent(in), pointer | MESH, | ||
integer(intg), intent(in) | COMPONENT_NUMBER, | ||
type(varying_string), intent(in) | EVALUATOR_NAME, | ||
integer(intg), intent(out) | ERR, | ||
type(varying_string), intent(out) | ERROR | ||
) |
Creates an OpenCMISS mesh component using relevant parameters from FieldML. Does not call CreateFinish.
fieldml_info | The FieldML parsing state. | |
[in] | mesh | The OpenCMISS mesh in which to create the component. |
[in] | component_number | The component number to create. |
[in] | evaluator_name | The name of the mesh component evaluator. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 928 of file fieldml_input_routines.f90.
References basis_routines::basis_user_number_find(), base_routines::enters(), base_routines::exits(), fieldml_assert_is_in(), fieldml_input_read_order(), fieldml_input_reorder(), and lists::list_number_of_items_get().
subroutine, public fieldml_input_routines::fieldml_input_field_create_start | ( | type(fieldml_io_type), pointer | FIELDML_INFO, |
type(region_type), intent(in), pointer | REGION, | ||
type(decomposition_type), intent(in), pointer | DECOMPOSITION, | ||
integer(intg), intent(in) | FIELD_NUMBER, | ||
type(field_type), intent(inout), pointer | FIELD, | ||
integer(intg), intent(in) | VARIABLE_TYPE, | ||
type(varying_string), intent(in) | EVALUATOR_NAME, | ||
integer(intg), intent(out) | ERR, | ||
type(varying_string), intent(out) | ERROR | ||
) |
Creates an OpenCMISS field using relevant parameters from FieldML. Does not call CreateFinish.
fieldml_info | The FieldML parsing state. | |
[in] | region | The region in which to create the field. |
[in] | decomposition | The decomposition to use when creating the field. |
[in] | field_number | The user number to assign to the created field. |
[in,out] | field | The OpenCMISS field object to create. |
[in] | variable_type | The OpenCMISS variable type. |
[in] | evaluator_name | The name of the field evaluator. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 1121 of file fieldml_input_routines.f90.
References base_routines::enters(), base_routines::exits(), fieldml_assert_is_in(), and fieldml_input_check_field_compatible().
subroutine, public fieldml_input_routines::fieldml_input_field_parameters_update | ( | type(fieldml_io_type), intent(inout) | FIELDML_INFO, |
type(varying_string), intent(in) | EVALUATOR_NAME, | ||
type(field_type), intent(inout), pointer | FIELD, | ||
integer(intg), intent(in) | VARIABLE_TYPE, | ||
integer(intg), intent(in) | SET_TYPE, | ||
integer(intg), intent(out) | ERR, | ||
type(varying_string), intent(out) | ERROR | ||
) |
Inputs from a FieldML file the parameters for a field variable parameter set.
[in,out] | fieldml_info | The FieldML parsing state. |
[in] | evaluator_name | The name of the nodal dofs evaluator. |
[in,out] | field | The field whose parameters are to be updated. |
[in] | variable_type | The OpenCMISS variable type. |
[in] | set_type | The parameter set type. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 1185 of file fieldml_input_routines.f90.
References base_routines::enters(), base_routines::exits(), and fieldmlinput_fieldnodalparametersupdate().
|
private |
Determine the basis collapse parameters from the given evaluator's name.
[in] | name | The basis evaluator name. |
[in,out] | collapse | The array of OpenCMISS basis collapse constants. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 183 of file fieldml_input_routines.f90.
References basis_routines::basis_collapsed_at_xi0, basis_routines::basis_collapsed_at_xi1, basis_routines::basis_not_collapsed, basis_routines::basis_xi_collapsed, base_routines::enters(), and base_routines::exits().
Referenced by fieldml_input_get_basis_info().
|
private |
Determines the connectivity evaluator and layout argument for the given basis.
[in] | fieldml_info | The FieldML parsing state. |
[in] | basis_handle | The basis handle. |
[in] | param_arg_handle | The basis parameters argument handle. |
[out] | connectivity_handle | The basis connectivity evaluator handle. |
[out] | layout_handle | The local node layout. |
[out] | err | The error code |
[out] | error | The error string. |
Definition at line 116 of file fieldml_input_routines.f90.
References base_routines::enters(), and base_routines::exits().
Referenced by fieldml_input_get_basis_info().
|
private |
Determines the basis configuration from the given basis evaluator.
[in] | fieldml_info | The FieldML parsing state. |
[in] | basis_handle | The basis evaluator handle. |
[out] | connectivity_handle | The basis connectivity evaluator handle. |
[out] | layout_handle | The local node layout. |
[out] | basistype | The OpenCMISS basis type. |
[out] | basis_interpolations | The per-xi basis interpolations (for TP bases). |
[out] | collapse | The collapse constants for the basis. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 237 of file fieldml_input_routines.f90.
References basis_routines::basis_lagrange_hermite_tp_type, basis_routines::basis_linear_lagrange_interpolation, basis_routines::basis_linear_simplex_interpolation, basis_routines::basis_quadratic_lagrange_interpolation, basis_routines::basis_quadratic_simplex_interpolation, basis_routines::basis_simplex_type, base_routines::enters(), base_routines::exits(), fieldml_input_get_basis_collapse(), fieldml_input_get_basis_connectivity_info(), fieldml_input_is_known_basis(), and constants::maxstrlen.
Referenced by fieldml_input_basis_create_start().
subroutine, public fieldml_input_routines::fieldml_input_initialise_from_file | ( | type(fieldml_io_type), pointer | FIELDML_INFO, |
type(varying_string), intent(in) | FILENAME, | ||
integer(intg), intent(out) | ERR, | ||
type(varying_string), intent(out) | ERROR | ||
) |
Initialize the given FieldML parsing state from the given FieldML file.
fieldml_info | The FieldML parsing state. | |
[in] | filename | The name of the FieldML file to parse. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 801 of file fieldml_input_routines.f90.
References base_routines::enters(), base_routines::error_output_type, base_routines::exits(), fieldml_util_routines::fieldml_io_initialise(), and constants::maxstrlen.
|
private |
Determines whether or not the given basis evaluator is known to OpenCMISS.
[in] | fieldml_info | The FieldML parsing state. |
[in] | basis_handle | The basis handle. |
[out] | err | The error code. |
[out] | error | The error string |
Definition at line 369 of file fieldml_input_routines.f90.
References base_routines::enters(), base_routines::exits(), and constants::maxstrlen.
Referenced by fieldml_input_get_basis_info(), and fieldml_input_is_template_compatible().
|
private |
Determines whether or not the given evaluator is a recognisable mesh component evaluator.
[in] | fieldml_info | The FieldML parsing state. |
[in] | component_handle | The mesh component evaluator. |
[in] | element_type | The element ensemble type. |
[out] | err | The error code. |
[out] | error | The error string |
Definition at line 419 of file fieldml_input_routines.f90.
References base_routines::enters(), base_routines::exits(), and fieldml_input_is_known_basis().
subroutine, public fieldml_input_routines::fieldml_input_mesh_create_start | ( | type(fieldml_io_type), pointer | FIELDML_INFO, |
type(varying_string), intent(in) | MESH_ARGUMENT_NAME, | ||
type(mesh_type), intent(inout), pointer | MESH, | ||
integer(intg), intent(in) | MESH_NUMBER, | ||
type(region_type), intent(in), pointer | REGION, | ||
integer(intg), intent(out) | ERR, | ||
type(varying_string), intent(out) | ERROR | ||
) |
Creates an OpenCMISS mesh using relevant parameters from FieldML. Does not call CreateFinish.
fieldml_info | The FieldML parsing state. | |
[in] | mesh_argument_name | The argument evaluator used as the mesh location in relevant evaluators. |
[in,out] | mesh | The OpenCMISS mesh object to create. |
[in] | mesh_number | The user number to assign to the mesh. |
[in] | region | The region in which to create the mesh. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 673 of file fieldml_input_routines.f90.
References base_routines::enters(), base_routines::exits(), and fieldml_assert_is_in().
subroutine, public fieldml_input_routines::fieldml_input_nodes_create_start | ( | type(fieldml_io_type), pointer | FIELDML_INFO, |
type(varying_string), intent(in) | NODES_ARGUMENT_NAME, | ||
type(region_type), intent(in), pointer | REGION, | ||
type(nodes_type), intent(inout), pointer | NODES, | ||
integer(intg), intent(out) | ERR, | ||
type(varying_string), intent(out) | ERROR | ||
) |
Creates an OpenCMISS nodes object using relevant parameters from FieldML. Does not call CreateFinish.
fieldml_info | The FieldML parsing state. | |
[in] | nodes_argument_name | The argument evaluator used as the node index in relevant evaluators. |
[in] | region | The region in which to create the nodes. |
[in,out] | nodes | The OpenCMISS nodes object to create. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 623 of file fieldml_input_routines.f90.
References base_routines::enters(), base_routines::exits(), and fieldml_assert_is_in().
|
private |
Reads an ensemble ordering using the given data source.
[in] | fieldml_info | The FieldML parsing state. |
[in] | order_handle | The data source containing the ordering. |
[in,out] | order | The array in which the order is stored. |
[in] | count | The number of entries in the ordering. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 840 of file fieldml_input_routines.f90.
References base_routines::enters(), and base_routines::exits().
Referenced by fieldml_input_create_mesh_component().
|
private |
Reorder the given values according to the given ordering.
[in] | input_buffer | The values to reorder. |
[in] | order | The ordering to apply. |
[in] | count | The number of values to reorder. |
[in,out] | output_buffer | The reordered values. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 894 of file fieldml_input_routines.f90.
References base_routines::enters(), and base_routines::exits().
Referenced by fieldml_input_create_mesh_component().
subroutine, public fieldml_input_routines::fieldmlinput_coordinatesystemcreatestart | ( | type(fieldml_io_type), pointer | FIELDML_INFO, |
type(varying_string), intent(in) | EVALUATOR_NAME, | ||
type(coordinate_system_type), intent(in), pointer | COORDINATE_SYSTEM, | ||
integer(intg), intent(in) | USER_NUMBER, | ||
integer(intg), intent(out) | ERR, | ||
type(varying_string), intent(out) | ERROR | ||
) |
Creates an OpenCMISS coordinate system using relevant parameters from FieldML. Does not call CreateFinish.
fieldml_info | The FieldML parsing state. | |
[in] | evaluator_name | The name of the coordinate system evaluator. |
[in] | coordinate_system | The OpenCMISS coordinate system to initialize. |
[in] | user_number | The user number to assign to the coordinate system. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 563 of file fieldml_input_routines.f90.
References coordinate_routines::coordinate_rectangular_cartesian_type, coordinate_routines::coordinate_system_create_start(), coordinate_routines::coordinate_system_dimension_set(), coordinate_routines::coordinate_system_type_set(), base_routines::enters(), base_routines::exits(), fieldml_assert_is_in(), and constants::maxstrlen.
|
private |
Update the given field's nodal parameters using the given parameter evaluator.
[in,out] | fieldml_info | The FieldML parsing state. |
[in] | evaluator_name | The name of the nodal dofs evaluator. |
[in,out] | field | The field whose parameters are to be updated. |
[in] | variable_type | The OpenCMISS variable type. |
[in] | set_type | The parameter set type. |
[out] | err | The error code. |
[out] | error | The error string. |
Definition at line 1245 of file fieldml_input_routines.f90.
References comp_environment::computational_node_number_get(), base_routines::enters(), base_routines::exits(), constants::no_global_deriv, and region_routines::region_nodes_get().
Referenced by fieldml_input_field_parameters_update().