Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
FORESEE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Gutsch
FORESEE
Commits
3a77c8a9
Commit
3a77c8a9
authored
6 years ago
by
Petra Lasch-Born
Browse files
Options
Downloads
Patches
Plain Diff
Eine Neue Datei hochladen
parent
82320a3f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source_code/version2.2_windows/win_appl_help_functions.f90
+92
-0
92 additions, 0 deletions
source_code/version2.2_windows/win_appl_help_functions.f90
with
92 additions
and
0 deletions
source_code/version2.2_windows/win_appl_help_functions.f90
0 → 100644
+
92
−
0
View file @
3a77c8a9
!*****************************************************************!
!* *!
!* 4C (FORESEE) Simulation Model *!
!* *!
!* Subroutines for: *!
!* - windows shell - *!
!* *!
!* contains: *!
!* GetFile *!
!* GetFileF *!
!* *!
!* Copyright (C) 1996-2018 *!
!* Potsdam Institute for Climate Impact Reserach (PIK) *!
!* Authors and contributors see AUTHOR file *!
!* This file is part of 4C and is licensed under BSD-2-Clause *!
!* See LICENSE file or under: *!
!* http://www.https://opensource.org/licenses/BSD-2-Clause *!
!* Contact: *!
!* https://gitlab.pik-potsdam.de/XXXXXXXXXXXXXXXXXXXXX *!
!* *!
!*****************************************************************!
SUBROUTINE
GetFile
(
filename
,
filter_spec
,
text
)
use
dflogm
implicit
none
integer
id
logical
ex
character
(
512
)::
filename
character
(
*
)
::
text
!Settings for FileOpen
character
*
512
::
file_get
character
*
(
*
)
::
filter_spec
include
'4C_dialogs.fd'
logical
retlog
call
FileOpen
(
filename
,
filter_spec
)
inquire
(
File
=
filename
,
exist
=
ex
)
if
(
ex
.eqv.
.true.
)
then
write
(
*
,
'(A,A)'
)
' Simulation control file: '
,
trim
(
filename
)
else
filename
=
' '
endif
END
SUBROUTINE
GetFile
!***************************************************************
! needed for time_out in Open Existing File
SUBROUTINE
GetFileF
(
filename
,
filter_spec
,
text
)
use
dflogm
implicit
none
integer
id
logical
ex
character
(
150
)
::
filename
character
(
*
)
::
text
!Settings for FileOpen
character
*
512
::
file_get
character
*
(
*
)
::
filter_spec
include
'4C_dialogs.fd'
logical
retlog
!logical retdir
call
FileOpen
(
file_get
,
filter_spec
)
do
filename
=
file_get
ex
=
.true.
if
(
ex
.eqv.
.true.
)
then
write
(
*
,
'(A,A)'
)
' Simulation control file: '
,
trim
(
filename
)
exit
else
write
(
*
,
'(A)'
)
' Simulation control file: '
,
trim
(
filename
),
' not exists'
write
(
*
,
'(A)'
,
advance
=
'no'
)
' Try again'
PAUSE
call
FileOpen
(
file_get
,
filter_spec
)
cycle
endif
enddo
END
SUBROUTINE
GetFileF
!***************************************************************
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment