Octopus
mesh_interpolation.F90
Go to the documentation of this file.
1!! Copyright (C) 2014 X. Andrade
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
19#include "global.h"
20
22 use comm_oct_m
23 use debug_oct_m
24 use global_oct_m
25 use index_oct_m
27 use mesh_oct_m
29 use mpi_oct_m
32
33 implicit none
34 private
35
36 public :: &
43
45 private
46
47 class(mesh_t),pointer :: mesh
49
51 module procedure dmesh_interpolation_evaluate
52 module procedure zmesh_interpolation_evaluate
55 end interface mesh_interpolation_evaluate
56
57contains
58
59 subroutine mesh_interpolation_init(this, mesh)
60 type(mesh_interpolation_t), intent(out) :: this
61 class(mesh_t),target, intent(in) :: mesh
62
64
65 assert(.not. mesh%use_curvilinear)
66
67 this%mesh => mesh
68
70 end subroutine mesh_interpolation_init
71
72 ! ---------------------------------------------------
73 subroutine mesh_interpolation_end(this)
74 type(mesh_interpolation_t), intent(inout) :: this
75
77
78 nullify(this%mesh)
79
81 end subroutine mesh_interpolation_end
82
83
84#include "undef.F90"
85#include "real.F90"
86#include "mesh_interpolation_inc.F90"
87
88#include "undef.F90"
89#include "complex.F90"
90#include "mesh_interpolation_inc.F90"
91
93
94
95!! Local Variables:
96!! mode: f90
97!! coding: utf-8
98!! End:
This module implements the index, used for the mesh points.
Definition: index.F90:122
subroutine, public zmesh_interpolation_test(mesh)
subroutine dmesh_interpolation_evaluate_vec(this, npoints, values, positions, interpolated_values)
subroutine zmesh_interpolation_evaluate(this, values, position, interpolated_value)
subroutine, public mesh_interpolation_init(this, mesh)
subroutine, public dmesh_interpolation_test(mesh)
subroutine dmesh_interpolation_evaluate(this, values, position, interpolated_value)
subroutine, public mesh_interpolation_end(this)
subroutine zmesh_interpolation_evaluate_vec(this, npoints, values, positions, interpolated_values)
This module defines the meshes, which are used in Octopus.
Definition: mesh.F90:118
Some general things and nomenclature:
Definition: par_vec.F90:171