Mercurial > op > rk_sakamoti
annotate rkmain.f90 @ 3:2347cff808b0
chage a parameter of rkmod::calc
author | "uncorrelated zombie" <uncorrelated@yahoo.co.jp> |
---|---|
date | Sun, 21 Jul 2024 04:11:29 +0900 |
parents | 206e90e91191 |
children | 0ca8347e4c47 |
rev | line source |
---|---|
0
5bd0f2a15d2a
import from https://qiita.com/sakamoti/items/de851e0d07aeef5be310
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
diff
changeset
|
1 program rkmain |
2
206e90e91191
make rkmod.f90
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
1
diff
changeset
|
2 use rkmod |
0
5bd0f2a15d2a
import from https://qiita.com/sakamoti/items/de851e0d07aeef5be310
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
diff
changeset
|
3 implicit none |
3
2347cff808b0
chage a parameter of rkmod::calc
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
2
diff
changeset
|
4 real(kind=dpkind),dimension(3) :: x = [0.5, 0.5, 0.5] |
2347cff808b0
chage a parameter of rkmod::calc
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
2
diff
changeset
|
5 integer :: max_i = 5000 |
2347cff808b0
chage a parameter of rkmod::calc
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
2
diff
changeset
|
6 real(kind=dpkind), allocatable, dimension(:, :) :: r |
1
954faa9f6837
separate output from calcuration.
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
0
diff
changeset
|
7 |
3
2347cff808b0
chage a parameter of rkmod::calc
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
2
diff
changeset
|
8 allocate(r(max_i, 4)) |
2347cff808b0
chage a parameter of rkmod::calc
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
2
diff
changeset
|
9 call calc(x, max_i, r) |
2
206e90e91191
make rkmod.f90
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
1
diff
changeset
|
10 print *, r |
0
5bd0f2a15d2a
import from https://qiita.com/sakamoti/items/de851e0d07aeef5be310
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
diff
changeset
|
11 end program |
1
954faa9f6837
separate output from calcuration.
"uncorrelated zombie" <uncorrelated@yahoo.co.jp>
parents:
0
diff
changeset
|
12 |