Toggle navigation
Gtool Project
地球流体電脳倶楽部
dcmodel プロジェクト
SIGEN
English
sysdep
sysdepenv.f90
Go to the documentation of this file.
1
!--
2
! *** Caution!! ***
3
!
4
! This file is generated from "sysdepenv.rb2f90" by Ruby 2.3.3.
5
! Please do not edit this file directly.
6
!
7
! [JAPANESE]
8
!
9
! ※※※ 注意!!! ※※※
10
!
11
! このファイルは "sysdepenv.rb2f90" から Ruby 2.3.3
12
! によって自動生成されたファイルです.
13
! このファイルを直接編集しませんようお願い致します.
14
!
15
!
16
!++
17
!
18
!== SysdepEnv - 環境依存性ルーチン (環境変数取得)
19
!
20
! Authors:: Yasuhiro MORIKAWA
21
! Version:: $Id: sysdepenv.rb2f90,v 1.2 2009-03-22 02:17:31 morikawa Exp $
22
! Tag Name:: $Name: $
23
! Copyright:: Copyright (C) GFD Dennou Club, 2006. All rights reserved.
24
! License:: See COPYRIGHT[link:../../COPYRIGHT]
25
!
26
! Fortran 95 以前の大抵の処理系では GETENV というサービスサブルーチンが
27
! 用意されている. (Fortran90/95 の規格には含まれていない).
28
! Fortran 2003 規格には GET_ENVIRONMENT_VARIABLE というサブルーチンが
29
! 規定されている. これらを使えない処理系では適宜対処が必要である.
30
!
31
32
subroutine
sysdepenvget
(env, str)
33
!
34
! この手続きは *env* に指定した環境変数の値を *str* へ返します.
35
! *env* 指定した環境変数が定義されていない場合は空文字が *str* へ
36
! 返ります.
37
! 処理系が <b>GET_ENVIRONMENT_VARIABLE()</b> または
38
! <b>GETENV()</b> を有していない場合は常に空文字が *str* へ
39
! 返ります.
40
!
41
! This procedure returns environment variable which is specified
42
! by *env* to *str*.
43
! If the environment variable is not set, blank is returned to *str*.
44
! If <b>GET_ENVIRONMENT_VARIABLE()</b> or
45
! <b>GETENV()</b> is not implemented, blank is returned to *str*
46
! at all times.
47
!
48
implicit none
49
character(len = *)
,
intent(in)
:: env
! 環境変数名
50
character(len = *)
,
intent(out)
:: str
! 環境変数の値
51
continue
52
call
get_environment_variable(trim(adjustl(env)), str)
53
end subroutine
sysdepenvget
54
55
!--
56
! vi:set readonly sw=4 ts=8:
57
!
58
!Local Variables:
59
!mode: f90
60
!buffer-read-only: t
61
!End:
62
!
63
!++
sysdepenvget
subroutine sysdepenvget(env, str)
Definition:
sysdepenv.f90:33