Checks if the derived type is valid.
Note
This function does NOT verify that referenced gmsh_msh1_node_type exist in the mesh.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(gmsh_msh1_element_type), | intent(in) | :: | element |
elemental function validate_gmsh_msh1_element_without_mesh_data(element) result(is_valid) type(gmsh_msh1_element_type), intent(in) :: element logical :: is_valid is_valid = validate(element%elm_number) if (.not. is_valid) return is_valid = validate(element%reg_elem) if (.not. is_valid) return is_valid = validate(element%reg_phys) if (.not. is_valid) return is_valid = allocated(element%node_number_list) if (.not. is_valid) return is_valid = all( validate( element%node_number_list(:) ) ) end function validate_gmsh_msh1_element_without_mesh_data