Skip to content
Snippets Groups Projects
Commit d9b34ecf authored by Antoine Cyril David Hoffmann's avatar Antoine Cyril David Hoffmann
Browse files

correction needed for linear simulations

parent 86f4c0a7
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,11 @@ CONTAINS
IF (my_id .EQ. num_procs-1) ikre = Nkr
!WRITE(*,*) 'ID = ',my_id,' ikrs = ', ikrs, ' ikre = ', ikre
! Grid spacings
deltakr = 2._dp*PI/Lr
IF (Lr .EQ. 0) THEN
deltakr = 1._dp
ELSE
deltakr = 2._dp*PI/Lr
ENDIF
! Discretized kr positions ordered as dk*(0 1 2 3)
ALLOCATE(krarray(ikrs:ikre))
......@@ -141,8 +145,11 @@ CONTAINS
ikze = Nkz
! Grid spacings
deltakz = 2._dp*PI/Lz
IF (Lz .EQ. 0) THEN
deltakz = 1._dp
ELSE
deltakz = 2._dp*PI/Lz
ENDIF
! Discretized kz positions ordered as dk*(0 1 2 3 -2 -1)
ALLOCATE(kzarray(ikzs:ikze))
DO ikz = ikzs,ikze
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment