Skip to content

Commit

Permalink
Release of JAGURS-D_V0503(src)
Browse files Browse the repository at this point in the history
The mod_bank.90 is updated because some user environment could not compile JAGURS-D_V0502.Revised.
  • Loading branch information
jagurs-admin authored Jul 19, 2019
1 parent d1fa040 commit fb6c8aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mod_bank.f90
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ subroutine read_bank_file(dg)
#endif
allocate(x(num_lines))
allocate(y(num_lines))
#ifdef CARTESIAN
#ifdef BANKFILEREAL
allocate(xin(num_lines))
allocate(yin(num_lines))
#endif
#endif
#ifdef OLDFORMAT
allocate(val(num_lines))
#else
Expand Down Expand Up @@ -198,8 +200,8 @@ subroutine read_bank_file(dg)
#endif
y(n) = ny - y(n) + 1
#else
x(n) = floor((xin(n) - mlon0)/dh) + 1
y(n) = floor((yin(n) - mlat0)/dh) + 1
x(n) = floor((xin(n) - mlon0 + 0.5d0*dh)/dh) + 1
y(n) = floor((yin(n) - mlat0 + 0.5d0*dh)/dh) + 1
#endif

#ifdef MPI
Expand Down Expand Up @@ -276,10 +278,12 @@ subroutine read_bank_file(dg)
#endif
deallocate(x)
deallocate(y)
#ifdef CARTESIAN
#ifdef BANKFILEREAL
deallocate(xin)
deallocate(yin)
#endif
#endif
#ifdef OLDFORMAT
deallocate(val)
#else
Expand Down

0 comments on commit fb6c8aa

Please sign in to comment.