Skip to content

Commit

Permalink
bug fix for gcc14 compilers
Browse files Browse the repository at this point in the history
By removing some outdated use of
common block, it ensures code compbiled by
gcc14 can function properly.
  • Loading branch information
“Jinyun committed Oct 11, 2024
1 parent 13117fe commit 67d8d4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/blodgett/ENF_g
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
30040000 0 0 1000 0.00083 1 1 1 0 0 0 0 0
31050000 0 0 1000 0.00083 1 1 1 0 0 0 0 0
30060000 0 0 1000 0.00083 1 1 1 0 0 0 0 0
31170000 0 0 1000 0.00083 1 1 1 0 0 0 0 0
31070000 0 0 1000 0.00083 1 1 1 0 0 0 0 0
31080000 0 0 1000 0.00083 1 1 1 0 0 0 0 0
30090000 0 0 1000 0.00083 1 1 1 0 0 0 0 0
31100000 0 0 1000 0.00083 1 1 1 0 0 0 0 0
Expand Down
2 changes: 1 addition & 1 deletion f77src/ecosys_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ configure_file(filec.h filec.h COPYONLY)
configure_file(files.h files.h COPYONLY)
configure_file(parameters.h parameters.h COPYONLY)
set(ECOSYS_SOURCES
BLOCKDATA001.f
# BLOCKDATA001.f
day.f
endrun.f
erosion.f
Expand Down
4 changes: 4 additions & 0 deletions f77src/ecosys_driver/main.f
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ PROGRAM main
include "filec.h"
include "files.h"
include "blkc.h"
include "blk17.h"

DIMENSION NA(250),ND(250)
CHARACTER*16 DATA(30),DATAC(30,250,250),DATAP(JP,JY,JX)
2,DATAM(JP,JY,JX),DATAX(JP),DATAY(JP),DATAZ(JP,JY,JX)
3,OUTS(10),OUTP(10),OUTFILS(10,JY,JX),OUTFILP(10,JP,JY,JX)
CHARACTER*3 CHOICE(102,20)
CHARACTER*8 CDATE
CHARACTER*80 BUF,PREFIX

ICOR=(/1,-1,0,0,1,1,2,3,3,4,4,5/)
CALL GETCWD(BUF)
C
C IDENTIFY OPERATING SYSTEM: DOS OR UNIX
Expand Down

0 comments on commit 67d8d4a

Please sign in to comment.