version 0.6.0
Loading...
Searching...
No Matches
mod_arrays Module Reference

Useful functions for manipulating arrays.

Functions/Subroutines

pure logical function is_in_array (val, array)
 Return true if the value is in the array.
 
pure double precision function, dimension(size(array)) get_reverse_array (array)
 Useful functions.
 
pure double precision function, dimension(3) get_reverse_array_n3 (array)
 Useful functions.
 
pure double precision function, dimension(5) get_reverse_array_n5 (array)
 Useful functions.
 

Function/Subroutine Documentation

◆ is_in_array()

pure logical function mod_arrays::is_in_array ( integer, intent(in) val,
integer, dimension(:), intent(in) array )
Parameters
[in]valthe value to search for
[in]arraythe array to search in
Returns
res: boolean
Todo
replace this routine by the intrinsic Fortran procedure 'findloc'