class_vector.f90 Source File


This file depends on

sourcefile~~class_vector.f90~~EfferentGraph sourcefile~class_vector.f90 class_vector.f90 sourcefile~class_psblas.f90 class_psblas.f90 sourcefile~class_vector.f90->sourcefile~class_psblas.f90 sourcefile~tools_psblas.f90 tools_psblas.f90 sourcefile~class_psblas.f90->sourcefile~tools_psblas.f90 sourcefile~class_stopwatch.f90 class_stopwatch.f90 sourcefile~class_psblas.f90->sourcefile~class_stopwatch.f90 sourcefile~class_stopwatch.f90->sourcefile~tools_psblas.f90

Files dependent on this one

sourcefile~~class_vector.f90~~AfferentGraph sourcefile~class_vector.f90 class_vector.f90 sourcefile~class_mesh.f90 class_mesh.F90 sourcefile~class_mesh.f90->sourcefile~class_vector.f90 sourcefile~class_vertex.f90 class_vertex.f90 sourcefile~class_mesh.f90->sourcefile~class_vertex.f90 sourcefile~class_surface.f90 class_surface.f90 sourcefile~class_mesh.f90->sourcefile~class_surface.f90 sourcefile~tools_output.f90 tools_output.f90 sourcefile~tools_output.f90->sourcefile~class_vector.f90 sourcefile~tools_output.f90->sourcefile~class_mesh.f90 sourcefile~class_vector_field.f90 class_vector_field.f90 sourcefile~tools_output.f90->sourcefile~class_vector_field.f90 sourcefile~tools_output.f90->sourcefile~class_vertex.f90 sourcefile~class_output.f90 class_output.f90 sourcefile~tools_output.f90->sourcefile~class_output.f90 sourcefile~class_scalar_field.f90 class_scalar_field.f90 sourcefile~tools_output.f90->sourcefile~class_scalar_field.f90 sourcefile~class_plane_procedures.f90 class_plane_procedures.f90 sourcefile~class_plane_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_plane.f90 class_plane.f90 sourcefile~class_plane_procedures.f90->sourcefile~class_plane.f90 sourcefile~class_plane_procedures.f90->sourcefile~class_vertex.f90 sourcefile~tools_math.f90 tools_math.f90 sourcefile~class_plane_procedures.f90->sourcefile~tools_math.f90 sourcefile~geom_tet_quality.f90 geom_tet_quality.f90 sourcefile~geom_tet_quality.f90->sourcefile~class_vector.f90 sourcefile~geom_tet_quality.f90->sourcefile~class_vertex.f90 sourcefile~class_bc_wall_procedures.f90 class_bc_wall_procedures.f90 sourcefile~class_bc_wall_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_bc_wall_procedures.f90->sourcefile~class_mesh.f90 sourcefile~tools_input.f90 tools_input.f90 sourcefile~class_bc_wall_procedures.f90->sourcefile~tools_input.f90 sourcefile~class_bc_wall.f90 class_bc_wall.f90 sourcefile~class_bc_wall_procedures.f90->sourcefile~class_bc_wall.f90 sourcefile~tools_bc.f90 tools_bc.f90 sourcefile~class_bc_wall_procedures.f90->sourcefile~tools_bc.f90 sourcefile~rhie_chow.f90 rhie_chow.f90 sourcefile~rhie_chow.f90->sourcefile~class_vector.f90 sourcefile~rhie_chow.f90->sourcefile~class_mesh.f90 sourcefile~rhie_chow.f90->sourcefile~class_vector_field.f90 sourcefile~op_field.f90 op_field.f90 sourcefile~rhie_chow.f90->sourcefile~op_field.f90 sourcefile~class_field.f90 class_field.f90 sourcefile~rhie_chow.f90->sourcefile~class_field.f90 sourcefile~rhie_chow.f90->sourcefile~class_scalar_field.f90 sourcefile~smooth_surf_vtx.f90 smooth_surf_vtx.f90 sourcefile~smooth_surf_vtx.f90->sourcefile~class_vector.f90 sourcefile~smooth_surf_vtx.f90->sourcefile~class_mesh.f90 sourcefile~smooth_surf_vtx.f90->sourcefile~class_vertex.f90 sourcefile~tools_mesh_optimize.f90 tools_mesh_optimize.f90 sourcefile~smooth_surf_vtx.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~tools_mesh_check.f90 tools_mesh_check.f90 sourcefile~smooth_surf_vtx.f90->sourcefile~tools_mesh_check.f90 sourcefile~smooth_surf_vtx.f90->sourcefile~class_surface.f90 sourcefile~geom_tet_volume.f90 geom_tet_volume.f90 sourcefile~geom_tet_volume.f90->sourcefile~class_vector.f90 sourcefile~geom_tet_volume.f90->sourcefile~class_vertex.f90 sourcefile~class_vector_pde.f90 class_vector_pde.f90 sourcefile~class_vector_pde.f90->sourcefile~class_vector.f90 sourcefile~class_vector_pde.f90->sourcefile~class_mesh.f90 sourcefile~class_vector_pde.f90->sourcefile~class_vector_field.f90 sourcefile~class_pde.f90 class_pde.f90 sourcefile~class_vector_pde.f90->sourcefile~class_pde.f90 sourcefile~vector_field_grad.f90 vector_field_grad.f90 sourcefile~vector_field_grad.f90->sourcefile~class_vector.f90 sourcefile~vector_field_grad.f90->sourcefile~class_mesh.f90 sourcefile~vector_field_grad.f90->sourcefile~class_vector_field.f90 sourcefile~op_grad.f90 op_grad.f90 sourcefile~vector_field_grad.f90->sourcefile~op_grad.f90 sourcefile~valid_tet.f90 valid_tet.f90 sourcefile~valid_tet.f90->sourcefile~class_vector.f90 sourcefile~valid_tet.f90->sourcefile~class_mesh.f90 sourcefile~valid_tet.f90->sourcefile~class_vertex.f90 sourcefile~valid_tet.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~read_par_v.f90 read_par_v.f90 sourcefile~read_par_v.f90->sourcefile~class_vector.f90 sourcefile~read_par_v.f90->sourcefile~tools_input.f90 sourcefile~vector_pde_ddt.f90 vector_pde_ddt.f90 sourcefile~vector_pde_ddt.f90->sourcefile~class_vector.f90 sourcefile~vector_pde_ddt.f90->sourcefile~class_mesh.f90 sourcefile~vector_pde_ddt.f90->sourcefile~class_vector_pde.f90 sourcefile~vector_pde_ddt.f90->sourcefile~class_vector_field.f90 sourcefile~op_ddt.f90 op_ddt.f90 sourcefile~vector_pde_ddt.f90->sourcefile~op_ddt.f90 sourcefile~vector_pde_ddt.f90->sourcefile~class_scalar_field.f90 sourcefile~class_vtk_output_procedures.f90 class_vtk_output_procedures.f90 sourcefile~class_vtk_output_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_vtk_output_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_vtk_output_procedures.f90->sourcefile~class_vertex.f90 sourcefile~class_vtk_output_procedures.f90->sourcefile~class_output.f90 sourcefile~class_vtk_output.f90 class_vtk_output.f90 sourcefile~class_vtk_output_procedures.f90->sourcefile~class_vtk_output.f90 sourcefile~rd_inp_motion_law.f90 rd_inp_motion_law.f90 sourcefile~rd_inp_motion_law.f90->sourcefile~class_vector.f90 sourcefile~rd_inp_motion_law.f90->sourcefile~tools_input.f90 sourcefile~vector_field_flux.f90 vector_field_flux.f90 sourcefile~vector_field_flux.f90->sourcefile~class_vector.f90 sourcefile~vector_field_flux.f90->sourcefile~class_mesh.f90 sourcefile~vector_field_flux.f90->sourcefile~class_vector_field.f90 sourcefile~vector_field_flux.f90->sourcefile~op_field.f90 sourcefile~vector_field_flux.f90->sourcefile~class_field.f90 sourcefile~vector_field_flux.f90->sourcefile~class_scalar_field.f90 sourcefile~class_vector_procedures.f90 class_vector_procedures.f90 sourcefile~class_vector_procedures.f90->sourcefile~class_vector.f90 sourcefile~geom_face.f90 geom_face.f90 sourcefile~geom_face.f90->sourcefile~class_vector.f90 sourcefile~geom_face.f90->sourcefile~class_vertex.f90 sourcefile~class_cylinder.f90 class_cylinder.f90 sourcefile~class_cylinder.f90->sourcefile~class_vector.f90 sourcefile~class_cylinder.f90->sourcefile~class_vertex.f90 sourcefile~class_vector_field.f90->sourcefile~class_vector.f90 sourcefile~class_vector_field.f90->sourcefile~class_mesh.f90 sourcefile~class_bc.f90 class_bc.f90 sourcefile~class_vector_field.f90->sourcefile~class_bc.f90 sourcefile~class_vector_field.f90->sourcefile~class_field.f90 sourcefile~smooth_mesh.f90 smooth_mesh.f90 sourcefile~smooth_mesh.f90->sourcefile~class_vector.f90 sourcefile~smooth_mesh.f90->sourcefile~class_mesh.f90 sourcefile~smooth_mesh.f90->sourcefile~class_vertex.f90 sourcefile~smooth_mesh.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~smooth_mesh.f90->sourcefile~tools_mesh_check.f90 sourcefile~smooth_mesh.f90->sourcefile~class_bc.f90 sourcefile~class_least_squares_procedures.f90 class_least_squares_procedures.f90 sourcefile~class_least_squares_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_least_squares_procedures.f90->sourcefile~tools_math.f90 sourcefile~get_par_v.f90 get_par_v.f90 sourcefile~get_par_v.f90->sourcefile~class_vector.f90 sourcefile~get_par_v.f90->sourcefile~tools_input.f90 sourcefile~class_bc_math_procedures.f90 class_bc_math_procedures.f90 sourcefile~class_bc_math_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_bc_math_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_bc_math_procedures.f90->sourcefile~tools_bc.f90 sourcefile~class_motion_procedures.f90 class_motion_procedures.f90 sourcefile~class_motion_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_motion_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_motion_procedures.f90->sourcefile~class_vertex.f90 sourcefile~class_motion.f90 class_motion.f90 sourcefile~class_motion_procedures.f90->sourcefile~class_motion.f90 sourcefile~class_motion_procedures.f90->sourcefile~tools_math.f90 sourcefile~class_motion_procedures.f90->sourcefile~class_surface.f90 sourcefile~vector_pde_laplacian.f90 vector_pde_laplacian.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~class_vector.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~class_mesh.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~class_vector_pde.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~class_vector_field.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~op_grad.f90 sourcefile~op_laplacian.f90 op_laplacian.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~op_laplacian.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~class_bc.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~tools_bc.f90 sourcefile~vector_pde_laplacian.f90->sourcefile~class_scalar_field.f90 sourcefile~check_tet_quality.f90 check_tet_quality.f90 sourcefile~check_tet_quality.f90->sourcefile~class_vector.f90 sourcefile~check_tet_quality.f90->sourcefile~class_mesh.f90 sourcefile~check_tet_quality.f90->sourcefile~class_vertex.f90 sourcefile~check_tet_quality.f90->sourcefile~tools_math.f90 sourcefile~check_tet_quality.f90->sourcefile~tools_mesh_check.f90 sourcefile~geom_hex_dihedral_angle.f90 geom_hex_dihedral_angle.f90 sourcefile~geom_hex_dihedral_angle.f90->sourcefile~class_vector.f90 sourcefile~geom_hex_dihedral_angle.f90->sourcefile~tools_math.f90 sourcefile~tools_input.f90->sourcefile~class_vector.f90 sourcefile~class_surface_procedures.f90 class_surface_procedures.f90 sourcefile~class_surface_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_surface_procedures.f90->sourcefile~class_cylinder.f90 sourcefile~class_surface_procedures.f90->sourcefile~class_plane.f90 sourcefile~class_surface_procedures.f90->sourcefile~class_vertex.f90 sourcefile~class_surface_procedures.f90->sourcefile~class_surface.f90 sourcefile~geom_tet_dihedral_angle.f90 geom_tet_dihedral_angle.f90 sourcefile~geom_tet_dihedral_angle.f90->sourcefile~class_vector.f90 sourcefile~geom_tet_dihedral_angle.f90->sourcefile~tools_math.f90 sourcefile~class_cylinder_procedures.f90 class_cylinder_procedures.f90 sourcefile~class_cylinder_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_cylinder_procedures.f90->sourcefile~class_cylinder.f90 sourcefile~class_cylinder_procedures.f90->sourcefile~class_vertex.f90 sourcefile~class_cylinder_procedures.f90->sourcefile~tools_math.f90 sourcefile~class_bc_procedures.f90 class_bc_procedures.f90 sourcefile~class_bc_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_bc_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_bc_procedures.f90->sourcefile~tools_input.f90 sourcefile~class_bc_procedures.f90->sourcefile~class_bc.f90 sourcefile~class_bc_procedures.f90->sourcefile~tools_bc.f90 sourcefile~class_mesh_procedures.f90 class_mesh_procedures.F90 sourcefile~class_mesh_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_mesh_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_mesh_procedures.f90->sourcefile~class_vertex.f90 sourcefile~class_mesh_procedures.f90->sourcefile~class_surface.f90 sourcefile~class_exodus_procedures.f90 class_exodus_procedures.f90 sourcefile~class_exodus_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_exodus_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_exodus_procedures.f90->sourcefile~class_vector_field.f90 sourcefile~class_exodus_procedures.f90->sourcefile~class_vertex.f90 sourcefile~class_exodus.f90 class_exodus.f90 sourcefile~class_exodus_procedures.f90->sourcefile~class_exodus.f90 sourcefile~class_exodus_procedures.f90->sourcefile~class_output.f90 sourcefile~class_exodus_procedures.f90->sourcefile~class_scalar_field.f90 sourcefile~geom_diff.f90 geom_diff.f90 sourcefile~geom_diff.f90->sourcefile~class_vector.f90 sourcefile~class_plane.f90->sourcefile~class_vector.f90 sourcefile~class_bc_wall.f90->sourcefile~class_vector.f90 sourcefile~class_bc_wall.f90->sourcefile~class_mesh.f90 sourcefile~write_vector_field.f90 write_vector_field.f90 sourcefile~write_vector_field.f90->sourcefile~class_vector.f90 sourcefile~write_vector_field.f90->sourcefile~class_mesh.f90 sourcefile~write_vector_field.f90->sourcefile~tools_output.f90 sourcefile~write_vector_field.f90->sourcefile~class_vector_field.f90 sourcefile~write_vector_field.f90->sourcefile~class_output.f90 sourcefile~tools_nemo.f90 tools_nemo.f90 sourcefile~tools_nemo.f90->sourcefile~class_vector.f90 sourcefile~tools_nemo.f90->sourcefile~class_mesh.f90 sourcefile~tools_nemo.f90->sourcefile~tools_output.f90 sourcefile~tools_nemo.f90->sourcefile~class_vector_pde.f90 sourcefile~tools_nemo.f90->sourcefile~class_vector_field.f90 sourcefile~tools_nemo.f90->sourcefile~tools_input.f90 sourcefile~tools_nemo.f90->sourcefile~tools_math.f90 sourcefile~tools_nemo.f90->sourcefile~op_grad.f90 sourcefile~op_div.f90 op_div.f90 sourcefile~tools_nemo.f90->sourcefile~op_div.f90 sourcefile~tools_nemo.f90->sourcefile~op_laplacian.f90 sourcefile~tools_nemo.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~tools_nemo.f90->sourcefile~op_ddt.f90 sourcefile~tools_nemo.f90->sourcefile~tools_mesh_check.f90 sourcefile~tools_nemo.f90->sourcefile~op_field.f90 sourcefile~op_d2dt2.f90 op_d2dt2.f90 sourcefile~tools_nemo.f90->sourcefile~op_d2dt2.f90 sourcefile~tools_nemo.f90->sourcefile~class_output.f90 sourcefile~tools_nemo.f90->sourcefile~class_bc.f90 sourcefile~tools_nemo.f90->sourcefile~class_surface.f90 sourcefile~class_scalar_pde.f90 class_scalar_pde.f90 sourcefile~tools_nemo.f90->sourcefile~class_scalar_pde.f90 sourcefile~tools_nemo.f90->sourcefile~class_scalar_field.f90 sourcefile~op_source.f90 op_source.f90 sourcefile~tools_nemo.f90->sourcefile~op_source.f90 sourcefile~check_right_handed.f90 check_right_handed.f90 sourcefile~check_right_handed.f90->sourcefile~class_vector.f90 sourcefile~check_right_handed.f90->sourcefile~class_mesh.f90 sourcefile~check_right_handed.f90->sourcefile~class_vertex.f90 sourcefile~check_right_handed.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~check_right_handed.f90->sourcefile~tools_mesh_check.f90 sourcefile~class_vertex.f90->sourcefile~class_vector.f90 sourcefile~class_output_procedures.f90 class_output_procedures.F90 sourcefile~class_output_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_output_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_output_procedures.f90->sourcefile~class_vector_field.f90 sourcefile~class_output_procedures.f90->sourcefile~tools_input.f90 sourcefile~class_output_procedures.f90->sourcefile~class_output.f90 sourcefile~class_output_procedures.f90->sourcefile~class_vtk_output.f90 sourcefile~class_output_procedures.f90->sourcefile~class_scalar_field.f90 sourcefile~class_motion.f90->sourcefile~class_vector.f90 sourcefile~flux_pde_div.f90 flux_pde_div.f90 sourcefile~flux_pde_div.f90->sourcefile~class_vector.f90 sourcefile~flux_pde_div.f90->sourcefile~class_mesh.f90 sourcefile~flux_pde_div.f90->sourcefile~op_div.f90 sourcefile~class_vector_pde_procedures.f90 class_vector_pde_procedures.f90 sourcefile~class_vector_pde_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_vector_pde_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_vector_pde_procedures.f90->sourcefile~class_vector_pde.f90 sourcefile~class_vector_pde_procedures.f90->sourcefile~class_vector_field.f90 sourcefile~class_vector_pde_procedures.f90->sourcefile~class_pde.f90 sourcefile~scalar_pde_laplacian.f90 scalar_pde_laplacian.f90 sourcefile~scalar_pde_laplacian.f90->sourcefile~class_vector.f90 sourcefile~scalar_pde_laplacian.f90->sourcefile~class_mesh.f90 sourcefile~scalar_pde_laplacian.f90->sourcefile~op_grad.f90 sourcefile~scalar_pde_laplacian.f90->sourcefile~op_laplacian.f90 sourcefile~scalar_pde_laplacian.f90->sourcefile~class_bc.f90 sourcefile~scalar_pde_laplacian.f90->sourcefile~tools_bc.f90 sourcefile~geom_cell.f90 geom_cell.f90 sourcefile~geom_cell.f90->sourcefile~class_vector.f90 sourcefile~geom_cell.f90->sourcefile~class_vertex.f90 sourcefile~class_vertex_procedures.f90 class_vertex_procedures.f90 sourcefile~class_vertex_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_vertex_procedures.f90->sourcefile~class_vertex.f90 sourcefile~pwl_implementation.f90 pwl_implementation.f90 sourcefile~pwl_implementation.f90->sourcefile~class_vector.f90 sourcefile~pwl_implementation.f90->sourcefile~tools_math.f90 sourcefile~tools_math.f90->sourcefile~class_vector.f90 sourcefile~check_mesh_quality.f90 check_mesh_quality.f90 sourcefile~check_mesh_quality.f90->sourcefile~class_vector.f90 sourcefile~check_mesh_quality.f90->sourcefile~class_mesh.f90 sourcefile~check_mesh_quality.f90->sourcefile~class_vertex.f90 sourcefile~check_mesh_quality.f90->sourcefile~tools_math.f90 sourcefile~check_mesh_quality.f90->sourcefile~tools_mesh_check.f90 sourcefile~check_mesh_quality.f90->sourcefile~class_scalar_field.f90 sourcefile~geom_hex_quality.f90 geom_hex_quality.f90 sourcefile~geom_hex_quality.f90->sourcefile~class_vector.f90 sourcefile~geom_hex_quality.f90->sourcefile~class_vertex.f90 sourcefile~scalar_field_grad.f90 scalar_field_grad.f90 sourcefile~scalar_field_grad.f90->sourcefile~class_vector.f90 sourcefile~scalar_field_grad.f90->sourcefile~class_mesh.f90 sourcefile~scalar_field_grad.f90->sourcefile~op_grad.f90 sourcefile~scalar_field_grad.f90->sourcefile~class_scalar_field.f90 sourcefile~op_grad.f90->sourcefile~class_vector.f90 sourcefile~op_grad.f90->sourcefile~class_vector_pde.f90 sourcefile~op_grad.f90->sourcefile~class_vector_field.f90 sourcefile~op_grad.f90->sourcefile~class_scalar_field.f90 sourcefile~laplacian_smooth.f90 laplacian_smooth.f90 sourcefile~laplacian_smooth.f90->sourcefile~class_vector.f90 sourcefile~laplacian_smooth.f90->sourcefile~class_vertex.f90 sourcefile~laplacian_smooth.f90->sourcefile~tools_math.f90 sourcefile~laplacian_smooth.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~vector_pde_div.f90 vector_pde_div.f90 sourcefile~vector_pde_div.f90->sourcefile~class_vector.f90 sourcefile~vector_pde_div.f90->sourcefile~class_mesh.f90 sourcefile~vector_pde_div.f90->sourcefile~class_vector_pde.f90 sourcefile~vector_pde_div.f90->sourcefile~op_div.f90 sourcefile~vector_pde_div.f90->sourcefile~class_bc.f90 sourcefile~vector_pde_div.f90->sourcefile~tools_bc.f90 sourcefile~vector_pde_grad.f90 vector_pde_grad.f90 sourcefile~vector_pde_grad.f90->sourcefile~class_vector.f90 sourcefile~vector_pde_grad.f90->sourcefile~class_mesh.f90 sourcefile~vector_pde_grad.f90->sourcefile~class_vector_pde.f90 sourcefile~vector_pde_grad.f90->sourcefile~tools_math.f90 sourcefile~vector_pde_grad.f90->sourcefile~op_grad.f90 sourcefile~vector_pde_grad.f90->sourcefile~class_scalar_field.f90 sourcefile~vector_pde_d2dt2.f90 vector_pde_d2dt2.f90 sourcefile~vector_pde_d2dt2.f90->sourcefile~class_vector.f90 sourcefile~vector_pde_d2dt2.f90->sourcefile~class_mesh.f90 sourcefile~vector_pde_d2dt2.f90->sourcefile~class_vector_pde.f90 sourcefile~vector_pde_d2dt2.f90->sourcefile~class_vector_field.f90 sourcefile~vector_pde_d2dt2.f90->sourcefile~op_d2dt2.f90 sourcefile~vector_pde_d2dt2.f90->sourcefile~class_scalar_field.f90 sourcefile~smooth_interior_vtx.f90 smooth_interior_vtx.f90 sourcefile~smooth_interior_vtx.f90->sourcefile~class_vector.f90 sourcefile~smooth_interior_vtx.f90->sourcefile~class_mesh.f90 sourcefile~smooth_interior_vtx.f90->sourcefile~class_vertex.f90 sourcefile~smooth_interior_vtx.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~smooth_interior_vtx.f90->sourcefile~tools_mesh_check.f90 sourcefile~scalar_vector_fld_mul.f90 scalar_vector_fld_mul.f90 sourcefile~scalar_vector_fld_mul.f90->sourcefile~class_vector.f90 sourcefile~scalar_vector_fld_mul.f90->sourcefile~class_vector_field.f90 sourcefile~scalar_vector_fld_mul.f90->sourcefile~op_field.f90 sourcefile~scalar_vector_fld_mul.f90->sourcefile~class_field.f90 sourcefile~scalar_vector_fld_mul.f90->sourcefile~class_scalar_field.f90 sourcefile~scalar_fld_vector_mul.f90 scalar_fld_vector_mul.f90 sourcefile~scalar_fld_vector_mul.f90->sourcefile~class_vector.f90 sourcefile~scalar_fld_vector_mul.f90->sourcefile~class_vector_field.f90 sourcefile~scalar_fld_vector_mul.f90->sourcefile~op_field.f90 sourcefile~scalar_fld_vector_mul.f90->sourcefile~class_field.f90 sourcefile~scalar_fld_vector_mul.f90->sourcefile~class_scalar_field.f90 sourcefile~class_vector_field_procedures.f90 class_vector_field_procedures.f90 sourcefile~class_vector_field_procedures.f90->sourcefile~class_vector.f90 sourcefile~class_vector_field_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_vector_field_procedures.f90->sourcefile~class_vector_field.f90 sourcefile~class_vector_field_procedures.f90->sourcefile~tools_math.f90 sourcefile~class_vector_field_procedures.f90->sourcefile~class_bc.f90 sourcefile~class_vector_field_procedures.f90->sourcefile~class_field.f90 sourcefile~lin_interp_implementation.f90 lin_interp_implementation.f90 sourcefile~lin_interp_implementation.f90->sourcefile~class_vector.f90 sourcefile~lin_interp_implementation.f90->sourcefile~tools_math.f90 sourcefile~op_div.f90->sourcefile~class_mesh.f90 sourcefile~op_div.f90->sourcefile~class_vector_pde.f90 sourcefile~op_div.f90->sourcefile~class_vector_field.f90 sourcefile~op_div.f90->sourcefile~class_scalar_pde.f90 sourcefile~op_div.f90->sourcefile~class_scalar_field.f90 sourcefile~class_iterating_procedures.f90 class_iterating_procedures.f90 sourcefile~class_iterating_procedures.f90->sourcefile~tools_input.f90 sourcefile~class_iterating_procedures.f90->sourcefile~tools_math.f90 sourcefile~op_laplacian.f90->sourcefile~class_vector_pde.f90 sourcefile~op_laplacian.f90->sourcefile~class_vector_field.f90 sourcefile~op_laplacian.f90->sourcefile~class_scalar_pde.f90 sourcefile~op_laplacian.f90->sourcefile~class_scalar_field.f90 sourcefile~tools_mesh_optimize.f90->sourcefile~class_mesh.f90 sourcefile~tools_mesh_optimize.f90->sourcefile~class_vertex.f90 sourcefile~tools_mesh_optimize.f90->sourcefile~class_bc.f90 sourcefile~write_scalar_field.f90 write_scalar_field.f90 sourcefile~write_scalar_field.f90->sourcefile~tools_output.f90 sourcefile~vector_pde_source.f90 vector_pde_source.f90 sourcefile~vector_pde_source.f90->sourcefile~class_mesh.f90 sourcefile~vector_pde_source.f90->sourcefile~class_vector_pde.f90 sourcefile~vector_pde_source.f90->sourcefile~class_vector_field.f90 sourcefile~vector_pde_source.f90->sourcefile~class_scalar_pde.f90 sourcefile~rd_gmsh_implementation.f90 rd_gmsh_implementation.f90 sourcefile~rd_gmsh_implementation.f90->sourcefile~class_vertex.f90 sourcefile~class_scalar_pde_procedures.f90 class_scalar_pde_procedures.f90 sourcefile~class_scalar_pde_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_scalar_pde_procedures.f90->sourcefile~class_scalar_pde.f90 sourcefile~class_scalar_pde_procedures.f90->sourcefile~class_scalar_field.f90 sourcefile~check_vertex_quality.f90 check_vertex_quality.f90 sourcefile~check_vertex_quality.f90->sourcefile~class_mesh.f90 sourcefile~check_vertex_quality.f90->sourcefile~tools_mesh_check.f90 sourcefile~class_scalar_field_procedures.f90 class_scalar_field_procedures.f90 sourcefile~class_scalar_field_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_scalar_field_procedures.f90->sourcefile~tools_math.f90 sourcefile~class_scalar_field_procedures.f90->sourcefile~class_bc.f90 sourcefile~class_scalar_field_procedures.f90->sourcefile~class_field.f90 sourcefile~class_scalar_field_procedures.f90->sourcefile~class_scalar_field.f90 sourcefile~op_ddt.f90->sourcefile~class_vector_pde.f90 sourcefile~op_ddt.f90->sourcefile~class_vector_field.f90 sourcefile~op_ddt.f90->sourcefile~class_scalar_pde.f90 sourcefile~op_ddt.f90->sourcefile~class_scalar_field.f90 sourcefile~psb_solve_sys_implementation.f90 psb_solve_sys_implementation.f90 sourcefile~psb_solve_sys_implementation.f90->sourcefile~tools_math.f90 sourcefile~get_par_h.f90 get_par_h.f90 sourcefile~get_par_h.f90->sourcefile~tools_input.f90 sourcefile~rd_inp_mesh_implementation.f90 rd_inp_mesh_implementation.f90 sourcefile~rd_inp_mesh_implementation.f90->sourcefile~tools_input.f90 sourcefile~tools_mesh_check.f90->sourcefile~class_mesh.f90 sourcefile~tools_mesh_check.f90->sourcefile~class_scalar_field.f90 sourcefile~get_par_l.f90 get_par_l.f90 sourcefile~get_par_l.f90->sourcefile~tools_input.f90 sourcefile~rd_gambit_implementation.f90 rd_gambit_implementation.f90 sourcefile~rd_gambit_implementation.f90->sourcefile~class_vertex.f90 sourcefile~class_material_procedures.f90 class_material_procedures.f90 sourcefile~class_material_procedures.f90->sourcefile~tools_math.f90 sourcefile~read_par_d.f90 read_par_d.f90 sourcefile~read_par_d.f90->sourcefile~tools_input.f90 sourcefile~op_field.f90->sourcefile~class_vector_field.f90 sourcefile~op_field.f90->sourcefile~class_scalar_field.f90 sourcefile~get_par_i.f90 get_par_i.f90 sourcefile~get_par_i.f90->sourcefile~tools_input.f90 sourcefile~rd_inp_material.f90 rd_inp_material.f90 sourcefile~rd_inp_material.f90->sourcefile~tools_input.f90 sourcefile~isort_implementation.f90 isort_implementation.f90 sourcefile~isort_implementation.f90->sourcefile~tools_math.f90 sourcefile~find_section.f90 find_section.f90 sourcefile~find_section.f90->sourcefile~tools_input.f90 sourcefile~read_par_h.f90 read_par_h.f90 sourcefile~read_par_h.f90->sourcefile~tools_input.f90 sourcefile~op_d2dt2.f90->sourcefile~class_vector_pde.f90 sourcefile~op_d2dt2.f90->sourcefile~class_vector_field.f90 sourcefile~op_d2dt2.f90->sourcefile~class_scalar_pde.f90 sourcefile~op_d2dt2.f90->sourcefile~class_scalar_field.f90 sourcefile~scalar_pde_source.f90 scalar_pde_source.f90 sourcefile~scalar_pde_source.f90->sourcefile~class_mesh.f90 sourcefile~scalar_pde_source.f90->sourcefile~op_source.f90 sourcefile~class_exodus.f90->sourcefile~class_mesh.f90 sourcefile~class_exodus.f90->sourcefile~class_vector_field.f90 sourcefile~class_exodus.f90->sourcefile~class_output.f90 sourcefile~class_exodus.f90->sourcefile~class_scalar_field.f90 sourcefile~class_output.f90->sourcefile~class_mesh.f90 sourcefile~class_output.f90->sourcefile~class_vector_field.f90 sourcefile~class_output.f90->sourcefile~class_scalar_field.f90 sourcefile~read_par_l.f90 read_par_l.f90 sourcefile~read_par_l.f90->sourcefile~tools_input.f90 sourcefile~read_par_i.f90 read_par_i.f90 sourcefile~read_par_i.f90->sourcefile~tools_input.f90 sourcefile~class_bc.f90->sourcefile~class_bc_wall.f90 sourcefile~class_bc.f90->sourcefile~class_motion.f90 sourcefile~class_field_procedures.f90 class_field_procedures.f90 sourcefile~class_field_procedures.f90->sourcefile~class_mesh.f90 sourcefile~class_field_procedures.f90->sourcefile~class_field.f90 sourcefile~class_pde_procedures.f90 class_pde_procedures.f90 sourcefile~class_pde_procedures.f90->sourcefile~tools_input.f90 sourcefile~class_pde_procedures.f90->sourcefile~tools_math.f90 sourcefile~class_pde_procedures.f90->sourcefile~class_pde.f90 sourcefile~class_vtk_output.f90->sourcefile~class_mesh.f90 sourcefile~class_vtk_output.f90->sourcefile~class_vector_field.f90 sourcefile~class_vtk_output.f90->sourcefile~class_output.f90 sourcefile~class_vtk_output.f90->sourcefile~class_scalar_field.f90 sourcefile~class_surface.f90->sourcefile~class_cylinder.f90 sourcefile~class_surface.f90->sourcefile~class_plane.f90 sourcefile~class_scalar_pde.f90->sourcefile~class_mesh.f90 sourcefile~class_scalar_pde.f90->sourcefile~class_pde.f90 sourcefile~class_scalar_pde.f90->sourcefile~class_scalar_field.f90 sourcefile~rd_inp_bc_math.f90 rd_inp_bc_math.f90 sourcefile~rd_inp_bc_math.f90->sourcefile~tools_input.f90 sourcefile~rd_inp_bc_math.f90->sourcefile~tools_bc.f90 sourcefile~rd_exodus_mesh.f90 rd_exodus_mesh.f90 sourcefile~rd_exodus_mesh.f90->sourcefile~class_vertex.f90 sourcefile~rd_exodus_mesh.f90->sourcefile~tools_math.f90 sourcefile~class_discretization_procedures.f90 class_discretization_procedures.f90 sourcefile~class_discretization_procedures.f90->sourcefile~tools_input.f90 sourcefile~geom_tet_center.f90 geom_tet_center.f90 sourcefile~geom_tet_center.f90->sourcefile~class_vertex.f90 sourcefile~class_field.f90->sourcefile~class_mesh.f90 sourcefile~class_field.f90->sourcefile~class_bc.f90 sourcefile~class_pde.f90->sourcefile~class_mesh.f90 sourcefile~write_mesh.f90 write_mesh.f90 sourcefile~write_mesh.f90->sourcefile~class_mesh.f90 sourcefile~write_mesh.f90->sourcefile~tools_output.f90 sourcefile~write_mesh.f90->sourcefile~class_vertex.f90 sourcefile~write_mesh.f90->sourcefile~class_output.f90 sourcefile~tools_bc.f90->sourcefile~class_motion.f90 sourcefile~class_scalar_source_procedures.f90 class_scalar_source_procedures.f90 sourcefile~class_scalar_source_procedures.f90->sourcefile~tools_input.f90 sourcefile~class_scalar_field.f90->sourcefile~class_mesh.f90 sourcefile~class_scalar_field.f90->sourcefile~class_bc.f90 sourcefile~class_scalar_field.f90->sourcefile~class_field.f90 sourcefile~cmp_mesh_implementation.f90 cmp_mesh_implementation.f90 sourcefile~cmp_mesh_implementation.f90->sourcefile~class_vertex.f90 sourcefile~cmp_mesh_implementation.f90->sourcefile~class_surface.f90 sourcefile~cholesky_implementation.f90 cholesky_implementation.f90 sourcefile~cholesky_implementation.f90->sourcefile~tools_math.f90 sourcefile~rd_inp_bc.f90 rd_inp_bc.f90 sourcefile~rd_inp_bc.f90->sourcefile~tools_input.f90 sourcefile~rd_inp_bc.f90->sourcefile~class_motion.f90 sourcefile~rd_inp_bc.f90->sourcefile~tools_bc.f90 sourcefile~scalar_pde_d2dt2.f90 scalar_pde_d2dt2.f90 sourcefile~scalar_pde_d2dt2.f90->sourcefile~class_mesh.f90 sourcefile~scalar_pde_d2dt2.f90->sourcefile~op_d2dt2.f90 sourcefile~cart_to_polar_implementation.f90 cart_to_polar_implementation.f90 sourcefile~cart_to_polar_implementation.f90->sourcefile~tools_math.f90 sourcefile~lu_implementation.f90 lu_implementation.F90 sourcefile~lu_implementation.f90->sourcefile~tools_math.f90 sourcefile~get_par_d.f90 get_par_d.f90 sourcefile~get_par_d.f90->sourcefile~tools_input.f90 sourcefile~rd_cgns_mesh.f90 rd_cgns_mesh.F90 sourcefile~rd_cgns_mesh.f90->sourcefile~class_vertex.f90 sourcefile~rd_cgns_mesh.f90->sourcefile~tools_math.f90 sourcefile~open_file.f90 open_file.F90 sourcefile~open_file.f90->sourcefile~tools_input.f90 sourcefile~scalar_pde_div.f90 scalar_pde_div.f90 sourcefile~scalar_pde_div.f90->sourcefile~class_mesh.f90 sourcefile~scalar_pde_div.f90->sourcefile~op_div.f90 sourcefile~scalar_pde_div.f90->sourcefile~class_bc.f90 sourcefile~scalar_pde_div.f90->sourcefile~tools_bc.f90 sourcefile~scalar_pde_ddt.f90 scalar_pde_ddt.f90 sourcefile~scalar_pde_ddt.f90->sourcefile~class_mesh.f90 sourcefile~scalar_pde_ddt.f90->sourcefile~op_ddt.f90 sourcefile~op_ddt_procedures.f90 op_ddt_procedures.f90 sourcefile~op_ddt_procedures.f90->sourcefile~op_ddt.f90 sourcefile~op_source.f90->sourcefile~class_scalar_pde.f90 sourcefile~op_source.f90->sourcefile~class_scalar_field.f90 sourcefile~op_d2dt2_procedures.f90 op_d2dt2_procedures.f90 sourcefile~op_d2dt2_procedures.f90->sourcefile~op_d2dt2.f90 sourcefile~op_laplacian_procedures.f90 op_laplacian_procedures.f90 sourcefile~op_laplacian_procedures.f90->sourcefile~op_laplacian.f90 sourcefile~mobile_verts.f90 mobile_verts.f90 sourcefile~mobile_verts.f90->sourcefile~tools_mesh_optimize.f90

Contents

Source Code


Source Code

!
!     (c) 2019 Guide Star Engineering, LLC
!     This Software was developed for the US Nuclear Regulatory Commission (US NRC)
!     under contract "Multi-Dimensional Physics Implementation into Fuel Analysis under
!     Steady-state and Transients (FAST)", contract # NRC-HQ-60-17-C-0007
!
!
!    NEMO - Numerical Engine (for) Multiphysics Operators
! Copyright (c) 2007, Stefano Toninel
!                     Gian Marco Bianchi  University of Bologna
!              David P. Schmidt    University of Massachusetts - Amherst
!              Salvatore Filippone University of Rome Tor Vergata
! All rights reserved.
!
! Redistribution and use in source and binary forms, with or without modification,
! are permitted provided that the following conditions are met:
!
!     1. Redistributions of source code must retain the above copyright notice,
!        this list of conditions and the following disclaimer.
!     2. Redistributions in binary form must reproduce the above copyright notice,
!        this list of conditions and the following disclaimer in the documentation
!        and/or other materials provided with the distribution.
!     3. Neither the name of the NEMO project nor the names of its contributors
!        may be used to endorse or promote products derived from this software
!        without specific prior written permission.
!
! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
! ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
! WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
! DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
! ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
! (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
! LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
! ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
! (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
! SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
!
!---------------------------------------------------------------------------------
!
! $Id: class_vector.f90 8157 2014-10-09 13:02:44Z sfilippo $
!
! Description:
!    To be added...
!
MODULE class_vector

    USE class_psblas

    IMPLICIT NONE

    PRIVATE ! Default
    PUBLIC :: vector                                   ! Class
    PUBLIC :: vector_, alloc_vector, free_vector       ! Constructor/destructor
    PUBLIC :: bcast_vector, g2l_vector, l2g_vector     ! Parallel Operations
    PUBLIC :: update_vector_halo                       ! Setters
    PUBLIC :: OPERATOR(+), OPERATOR(-), OPERATOR(*), & ! Vector Algebra
        &    OPERATOR(.dot.), OPERATOR(.cross.),    &
        &    OPERATOR(==),  ASSIGNMENT(=)
    PUBLIC :: mandatory_v_

    TYPE vector
        PRIVATE
        REAL(psb_dpk_) :: x
        REAL(psb_dpk_) :: y
        REAL(psb_dpk_) :: z
    CONTAINS
        PROCEDURE, PRIVATE :: get_vector_x, get_vector_y, get_vector_z  ! Getters
        GENERIC, PUBLIC :: x_ => get_vector_x
        GENERIC, PUBLIC :: y_ => get_vector_y
        GENERIC, PUBLIC :: z_ => get_vector_z
        PROCEDURE, PRIVATE :: set_vector_x, set_vector_y, set_vector_z  ! Setters
        GENERIC, PUBLIC :: set_x_ => set_vector_x
        GENERIC, PUBLIC :: set_y_ => set_vector_y
        GENERIC, PUBLIC :: set_z_ => set_vector_z
        PROCEDURE, PRIVATE :: vec_mag, vec_unit
        GENERIC, PUBLIC :: mag => vec_mag
        GENERIC, PUBLIC :: unit => vec_unit
        PROCEDURE, PRIVATE :: nemo_vector_sizeof
        GENERIC, PUBLIC :: nemo_sizeof => nemo_vector_sizeof
    END TYPE vector


    ! ----- Generic Interfaces -----

    ! Getters
    INTERFACE
        ELEMENTAL MODULE FUNCTION get_vector_x(vert)
            IMPLICIT NONE
            REAL(psb_dpk_) :: get_vector_x
            CLASS(vector), INTENT(IN) :: vert
        END FUNCTION get_vector_x

        ELEMENTAL MODULE FUNCTION get_vector_y(vert)
            IMPLICIT NONE
            REAL(psb_dpk_) :: get_vector_y
            CLASS(vector), INTENT(IN) :: vert
        END FUNCTION get_vector_y

        ELEMENTAL MODULE FUNCTION get_vector_z(vert)
            IMPLICIT NONE
            REAL(psb_dpk_) :: get_vector_z
            CLASS(vector), INTENT(IN) :: vert
        END FUNCTION get_vector_z

    ! Setters

        MODULE SUBROUTINE set_vector_x(vect,r)
            IMPLICIT NONE
            REAL(psb_dpk_)::r
            CLASS(vector), INTENT(INOUT) :: vect
        END SUBROUTINE set_vector_x

        MODULE SUBROUTINE set_vector_y(vect,r)
            IMPLICIT NONE
            REAL(psb_dpk_)::r
            CLASS(vector), INTENT(INOUT) :: vect
        END SUBROUTINE set_vector_y

        MODULE SUBROUTINE set_vector_z(vect,r)
            IMPLICIT NONE
            REAL(psb_dpk_)::r
            CLASS(vector), INTENT(INOUT) :: vect
        END SUBROUTINE set_vector_z
    END INTERFACE

    ! ----- Operators Overloading -----

    INTERFACE OPERATOR(+)
        ELEMENTAL MODULE FUNCTION vec_sum(a,b)
            IMPLICIT NONE
            TYPE(vector) :: vec_sum
            TYPE(vector), INTENT(IN)  :: a, b
        END FUNCTION vec_sum
    END INTERFACE OPERATOR(+)

    INTERFACE OPERATOR(-)
        ELEMENTAL MODULE FUNCTION vec_diff(a,b)
            IMPLICIT NONE
            TYPE(vector) :: vec_diff
            TYPE(vector), INTENT(IN) :: a, b
        END FUNCTION vec_diff

        ELEMENTAL MODULE FUNCTION vec_minus(v)
            IMPLICIT NONE
            TYPE(vector) :: vec_minus
            TYPE(vector), INTENT(IN) :: v
        END FUNCTION vec_minus
    END INTERFACE OPERATOR(-)

    INTERFACE OPERATOR(*)
        ELEMENTAL MODULE FUNCTION scalar_vector_prod(alpha,v)
            IMPLICIT NONE
            TYPE(vector) :: scalar_vector_prod
            REAL(psb_dpk_), INTENT(IN) :: alpha
            TYPE(vector), INTENT(IN) :: v
        END FUNCTION scalar_vector_prod
    END INTERFACE OPERATOR(*)

    INTERFACE OPERATOR(.dot.)
        PURE MODULE FUNCTION dot_prod_t(a,b)
        ! Used for GRAD .dot. DELTA in VECTOR_PDE_LAPLACIAN.
        ! GRAD is a tensor. It would need a proper class...
            IMPLICIT NONE
            TYPE(vector) :: dot_prod_t
            TYPE(vector), INTENT(IN) :: a(:), b
        END FUNCTION dot_prod_t


        PURE MODULE FUNCTION dot_prod_v(a,b)
            IMPLICIT NONE
            REAL(psb_dpk_) :: dot_prod_v
            TYPE(vector), INTENT(IN) :: a, b
        END FUNCTION dot_prod_v
    END INTERFACE OPERATOR(.dot.)

    INTERFACE OPERATOR(.cross.)
        PURE MODULE FUNCTION cross_prod(a,b)
            IMPLICIT NONE
            TYPE(vector) :: cross_prod
            TYPE(vector), INTENT(IN) :: a, b
        END FUNCTION cross_prod
    END INTERFACE OPERATOR(.cross.)

    INTERFACE
        ELEMENTAL MODULE FUNCTION vec_mag(v)
            IMPLICIT NONE
            REAL(psb_dpk_) :: vec_mag
            CLASS(vector), INTENT(IN) :: v
        END FUNCTION vec_mag

        ELEMENTAL MODULE FUNCTION vec_unit(v)
            IMPLICIT NONE
            !! Returns a unit vector in the direction of V
            TYPE(vector)              :: vec_unit
            CLASS(vector), INTENT(IN) :: v
        END FUNCTION vec_unit
    END INTERFACE

    INTERFACE OPERATOR(==)
        PURE MODULE FUNCTION vec_eq(a,b)
            IMPLICIT NONE
            LOGICAL :: vec_eq
            TYPE(vector), INTENT(IN) :: a, b
        END FUNCTION vec_eq
    END INTERFACE OPERATOR(==)

    INTERFACE ASSIGNMENT(=)
        PURE MODULE SUBROUTINE vector_to_array(a,b)
            IMPLICIT NONE
            REAL(psb_dpk_), INTENT(OUT) :: a(3)
            TYPE(vector),   INTENT(IN)  :: b
        END SUBROUTINE vector_to_array
    END INTERFACE ASSIGNMENT(=)

    INTERFACE
        ELEMENTAL MODULE FUNCTION nemo_vector_sizeof(vec)
            USE psb_base_mod
            IMPLICIT NONE
            CLASS(vector), INTENT(IN) :: vec
            INTEGER(kind=nemo_int_long_)   :: nemo_vector_sizeof
        END FUNCTION nemo_vector_sizeof

        ! ----- Constructors -----

        ! Public default constructor
        ELEMENTAL MODULE FUNCTION vector_(x,y,z)
            IMPLICIT NONE
            TYPE(vector) :: vector_
            REAL(psb_dpk_), INTENT(IN) :: x, y, z
        END FUNCTION vector_


        ! Array constructor
        MODULE SUBROUTINE alloc_vector(vect,n)
            IMPLICIT NONE
            TYPE(vector), ALLOCATABLE :: vect(:)
            INTEGER, INTENT(IN) :: n
        END SUBROUTINE alloc_vector

    ! ----- Destructor -----
        MODULE SUBROUTINE free_vector(vect)
            IMPLICIT NONE
            TYPE(vector), ALLOCATABLE :: vect(:)
        END SUBROUTINE free_vector

    ! ----- Parallel Operations -----
        MODULE SUBROUTINE bcast_vector(vect)
            IMPLICIT NONE
            TYPE(vector), ALLOCATABLE :: vect(:)
        END SUBROUTINE bcast_vector

        MODULE SUBROUTINE g2l_vector(verts,desc_v)
            USE psb_base_mod, ONLY : psb_desc_type
            IMPLICIT NONE
            TYPE(vector), ALLOCATABLE  :: verts(:)
            TYPE(psb_desc_type), INTENT(IN) :: desc_v
        END SUBROUTINE g2l_vector

        MODULE SUBROUTINE l2g_vector(verts_loc,verts_glob,desc_v)
            USE psb_base_mod, ONLY : psb_desc_type
            IMPLICIT NONE
            ! WARNING! The global results is allocated only on P0. After its usage
            ! it must be deallocated in the calling unit by means of the statement:
            ! "if(associated(glob_res)) deallocate(glob_res)"
            TYPE(vector)               :: verts_loc(:)
            TYPE(vector), ALLOCATABLE  :: verts_glob(:)
            TYPE(psb_desc_type), INTENT(IN) :: desc_v
        END SUBROUTINE l2g_vector

        MODULE SUBROUTINE update_vector_halo(v,desc)
            USE psb_base_mod, ONLY : psb_desc_type
            IMPLICIT NONE
            TYPE(vector), INTENT(INOUT) :: v(:)
            TYPE(psb_desc_type), INTENT(IN) :: desc
        END SUBROUTINE update_vector_halo
    END INTERFACE

    ! ----- Named Constants -----

    TYPE(vector), PARAMETER :: mandatory_v_ = vector(-999.d0,999.d0,999.d0)

END MODULE class_vector