LoginSignup
0
0

Fortran備忘録

Last updated at Posted at 2019-12-10

メモ
https://amanotk.github.io/fortran-resume-public/chap09.html
https://www.mk-mode.com/blog/2019/09/20/fortran95-sample-object-oriented/#

変数の宣言

optional

Subroutine calc(a,b,c,nmax)
  real(8), intent(in) :: a,b
  real(8), intent(out) :: c
  integer, optional :: nmax

とすると、nmaxは省略可能な引数となる。
省略の有無はpresent(nmax)のTrue/Falseで確認できる。

Module

Submodule

FORTRANのModernizeに使えるいくつかの機能 - Qiita

Type

Interface

Block

FORTRANのModernizeに使えるいくつかの機能 - Qiita

References

9. モジュールと構造型 — Fortran演習(地球惑星物理学演習)
Fortran 90 骨の髄まで 4-1 構造型の宣言

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0