DAMASK with grid solvers
Revision: v2.0.3-2204-gdb1f2151
The Düsseldorf Advanced Material Simulation Kit with Grid Solvers
future.f90
Go to the documentation of this file.
1
# 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/future.f90"
2
# 1 "<built-in>"
3
# 1 "<command-line>"
4
# 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/future.f90"
5
!--------------------------------------------------------------------------------------------------
8
!--------------------------------------------------------------------------------------------------
9
module
future
10
use
prec
11
12
implicit none
13
public
14
15
contains
16
17
18
!--------------------------------------------------------------------------------------------------
20
!--------------------------------------------------------------------------------------------------
21
function
findloc
(a,v)
22
23
integer
,
intent(in)
,
dimension(:)
:: a
24
integer
,
intent(in)
:: v
25
integer
:: i,j
26
integer
,
allocatable
,
dimension(:)
::
findloc
27
28
allocate
(
findloc
(count(a==v)))
29
j = 1
30
do
i = 1,
size
(a)
31
if
(a(i)==v)
then
32
findloc
(j) = i
33
j = j + 1
34
endif
35
enddo
36
end function
findloc
37
38
39
end module
future
future
New fortran functions for compiler versions that do not support them.
Definition:
future.f90:9
prec
setting precision for real and int type
Definition:
prec.f90:13
future::findloc
integer function, dimension(:), allocatable findloc(a, v)
substitute for the findloc intrinsic (only for integer, dimension(:) at the moment)
Definition:
future.f90:22
src
future.f90
Generated on Wed Apr 1 2020 18:44:58 for DAMASK with grid solvers by
1.8.17