Skip to content

Commit

Permalink
Fixed forgotten sbeta
Browse files Browse the repository at this point in the history
  • Loading branch information
jcandy committed Nov 19, 2024
1 parent 7b8f3d0 commit 4e45265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cgyro/src/cgyro_write_initdata.f90
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ subroutine cgyro_write_initdata
do is=1,n_species
write (io,fmtstr) sdlnndr(is)
write (io,fmtstr) sdlntdr(is)
write (io,fmtstr) sbeta(is)
enddo
close(io)

Expand Down
2 changes: 2 additions & 0 deletions f2py/pygacode/cgyro/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,11 @@ def getgrid(self):
# Added 3 May 2024
self.sdlnndr = np.zeros(ns)
self.sdlntdr = np.zeros(ns)
self.sbeta = np.zeros(ns)
for i in range(ns):
self.sdlnndr[i],p = self.eget(data,p)
self.sdlntdr[i],p = self.eget(data,p)
self.sbeta[i],p = self.eget(data,p)

if p == -1:
print('WARNING: (getgrid) Data format outdated. Please run cgyro -t')
Expand Down

0 comments on commit 4e45265

Please sign in to comment.