OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
vector_mod Module Reference

Data Types

type  t_vector

Functions/Subroutines

integer function get_dim (this)
subroutine set_dim (this, dim)
subroutine create (this, nn)
subroutine destroy (this)
subroutine associate (this, ptr_irow, ptr_val)
function norm (this)

Function/Subroutine Documentation

◆ associate()

subroutine vector_mod::associate ( class(t_vector), intent(inout), target this,
integer, dimension(:), pointer ptr_irow,
double precision, dimension(:), pointer ptr_val )

Definition at line 132 of file vector_mod.F.

133C-----------------------------------------------
134C I m p l i c i t T y p e s
135C-----------------------------------------------
136#include "implicit_f.inc"
137 class(t_vector), intent(inout), target :: this
138 integer, dimension(:), pointer :: ptr_irow
139 double precision, dimension(:), pointer :: ptr_val
140 ptr_irow => this%irow
141 ptr_val => this%val

◆ create()

subroutine vector_mod::create ( class(t_vector), intent(inout) this,
integer, intent(in) nn )

Definition at line 97 of file vector_mod.F.

98C-----------------------------------------------
99C I m p l i c i t T y p e s
100C-----------------------------------------------
101#include "implicit_f.inc"
102 class(t_vector), intent(inout) :: this
103 integer, intent(in) :: nn
104 this%dim = nn
105 allocate(this%irow(nn), this%val(nn))

◆ destroy()

subroutine vector_mod::destroy ( class(t_vector), intent(inout) this)

Definition at line 115 of file vector_mod.F.

116C-----------------------------------------------
117C I m p l i c i t T y p e s
118C-----------------------------------------------
119#include "implicit_f.inc"
120 class(t_vector), intent(inout) :: this
121 if (allocated(this%irow)) deallocate(this%irow)
122 if (allocated(this%val)) deallocate(this%val)

◆ get_dim()

integer function vector_mod::get_dim ( class(t_vector), intent(in) this)

Definition at line 71 of file vector_mod.F.

72 class(t_vector), intent(in) :: this
73 integer :: get_dim
74 get_dim = this%dim

◆ norm()

function vector_mod::norm ( class(t_vector), intent(in) this)

Definition at line 153 of file vector_mod.F.

154C-----------------------------------------------
155C I m p l i c i t T y p e s
156C-----------------------------------------------
157#include "implicit_f.inc"
158 class(t_vector), intent(in) :: this
159 my_real :: norm
160 integer :: ii
161 norm = zero
162 do ii = 1, this%dim
163 norm = norm + abs(this%val(ii))
164 enddo
#define my_real
Definition cppsort.cpp:32
norm(diag(diag(diag(inv(mat))) -id.SOL), 2) % destroy mumps instance id.JOB

◆ set_dim()

subroutine vector_mod::set_dim ( class(t_vector), intent(inout) this,
integer dim )

Definition at line 84 of file vector_mod.F.

85 class(t_vector), intent(inout) :: this
86 integer :: dim
87 this%dim = dim