Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flexpart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Püschel
Flexpart
Commits
18c1336f
Commit
18c1336f
authored
10 years ago
by
Ignacio Pisso
Browse files
Options
Downloads
Patches
Plain Diff
correct missing trailing slash (/) in readpaths.f90. issue a warning.
parent
242571dd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/readpaths.f90
+24
-3
24 additions, 3 deletions
src/readpaths.f90
with
24 additions
and
3 deletions
src/readpaths.f90
+
24
−
3
View file @
18c1336f
...
@@ -63,20 +63,32 @@ subroutine readpaths !(pathfile)
...
@@ -63,20 +63,32 @@ subroutine readpaths !(pathfile)
length
(
i
)
=
index
(
path
(
i
),
' '
)
-1
length
(
i
)
=
index
(
path
(
i
),
' '
)
-1
if
(
verbosity
.gt.
0
)
then
print
*
,
'path read'
,
i
,
'='
,
path
(
i
)
end
if
end
do
do
i
=
1
,
numpath
string_test
=
path
(
i
)
string_test
=
path
(
i
)
character_test
=
string_test
(
length
(
i
):
length
(
i
))
character_test
=
string_test
(
length
(
i
):
length
(
i
))
!print*, 'character_test, string_test ', character_test, string_test
!print*, 'character_test, string_test ', character_test, string_test
if
((
character_test
.NE.
'/'
)
.AND.
(
i
.LT.
4
))
then
if
((
character_test
.NE.
'/'
)
.AND.
(
i
.LT.
4
))
then
print
*
,
'WARNING: path not ending in /'
print
*
,
'
readpaths>
WARNING: path not ending in /'
print
*
,
path
(
i
)
print
*
,
path
(
i
)
path
(
i
)
=
string_test
(
1
:
length
(
i
))
//
'/'
path
(
i
)
=
string_test
(
1
:
length
(
i
))
//
'/'
length
(
i
)
=
length
(
i
)
+1
length
(
i
)
=
length
(
i
)
+1
print
*
,
'fix: padded with /'
print
*
,
'fix: padded with /'
print
*
,
path
(
i
)
print
*
,
path
(
i
)
print
*
,
'length(i) increased 1'
print
*
,
'length(i) increased 1'
,
length
(
i
)
endif
endif
end
do
end
do
! Check whether any nested subdomains are to be used
! Check whether any nested subdomains are to be used
!***************************************************
!***************************************************
...
@@ -94,9 +106,18 @@ subroutine readpaths !(pathfile)
...
@@ -94,9 +106,18 @@ subroutine readpaths !(pathfile)
30
numbnests
=
i
-1
30
numbnests
=
i
-1
if
(
verbosity
.gt.
0
)
then
do
i
=
1
,
numpath
print
*
,
'path tested'
,
i
,
'='
,
path
(
i
)
end
do
end
if
close
(
unitpath
)
close
(
unitpath
)
return
return
998
write
(
*
,
*
)
' #### TRAJECTORY MODEL ERROR! ERROR WHILE #### '
998
write
(
*
,
*
)
' #### TRAJECTORY MODEL ERROR! ERROR WHILE #### '
write
(
*
,
*
)
' #### READING FILE PATHNAMES. #### '
write
(
*
,
*
)
' #### READING FILE PATHNAMES. #### '
stop
stop
...
...
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