Skip to content

Commit a23de1a

Browse files
authored
Merge pull request #10 from certik/paper
Update the namepace modules paper for upload
2 parents df28e0f + a1d4775 commit a23de1a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

proposals/19-246.txt renamed to proposals/namespace_modules/19-246.txt

+15-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
Proposal for Fortran Standard: 202y (NOT 202x)
2-
31
To: J3 J3/19-246
4-
From: Ondřej Čertík
2+
From: Ondrej Certik
53
Subject: Namespace For Modules
6-
Date: 2019-October-15
4+
Date: 2019-October-16
5+
6+
Proposal for Fortran Standard: 202y (NOT 202x)
7+
78

89
1. Introduction
910

10-
The proposal is to allow import a module as a namespace and access its members
11-
using the % operator. Example:
11+
The proposal is to allow import a module as a namespace and access its
12+
members using the % operator. Example:
1213

1314
use, namespace :: utils
1415
...
@@ -78,11 +79,12 @@ With this proposal one could also do:
7879

7980
3.2 Need to import lots of functions from a module
8081

81-
Exisintg code (https://github.com/certik/fortran-utils/blob/b43bd24cd421509a5bc6d3b9c3eeae8ce856ed88/src/linalg.f90):
82+
Exising code (https://github.com/certik/fortran-utils/blob/
83+
b43bd24cd421509a5bc6d3b9c3eeae8ce856ed88/src/linalg.f90):
8284

8385
use lapack, only: dsyevd, dsygvd, ilaenv, zgetri, zgetrf, zheevd, &
84-
dgeev, zgeev, zhegvd, dgesv, zgesv, dgetrf, dgetri, dgelsy, zgelsy, &
85-
dgesvd, zgesvd, dgeqrf, dorgqr, dpotrf, dtrtrs
86+
dgeev, zgeev, zhegvd, dgesv, zgesv, dgetrf, dgetri, dgelsy, &
87+
zgelsy, dgesvd, zgesvd, dgeqrf, dorgqr, dpotrf, dtrtrs
8688
...
8789
call dgeev('N', 'V', n, At, lda, wr, wi, vl, ldvl, vr, ldvr, &
8890
work, lwork, info)
@@ -100,5 +102,7 @@ Instead, one can write it as:
100102
call lapack%dgetrf(n, n, Amt, lda, ipiv, info)
101103
...
102104

103-
Then when another subroutine must be called from the `lapack` module, one can
104-
just call it, without having to modify the `use` statement.
105+
Then when another subroutine must be called from the `lapack` module, one
106+
can just call it, without having to modify the `use` statement.
107+
108+

0 commit comments

Comments
 (0)