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

Condition for Nkr=1 was wrong

parent e897c0b9
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ CONTAINS ...@@ -90,7 +90,7 @@ CONTAINS
IF ( Nr .GT. 1 ) THEN ! To avoid case with 0 intervals IF ( Nr .GT. 1 ) THEN ! To avoid case with 0 intervals
deltar = Lr / REAL(Nr-1,dp) deltar = Lr / REAL(Nr-1,dp)
ELSE ELSE
deltar = 0; deltar = 1;
ENDIF ENDIF
! Discretized r positions ordered as dx*(0 1 2 -3 -2 -1) ! Discretized r positions ordered as dx*(0 1 2 -3 -2 -1)
ALLOCATE(rarray(irs:ire)) ALLOCATE(rarray(irs:ire))
...@@ -116,7 +116,7 @@ CONTAINS ...@@ -116,7 +116,7 @@ CONTAINS
IF ( Nz .GT. 1 ) THEN ! To avoid case with 0 intervals IF ( Nz .GT. 1 ) THEN ! To avoid case with 0 intervals
deltaz = Lz / REAL(Nz-1,dp) deltaz = Lz / REAL(Nz-1,dp)
ELSE ELSE
deltaz = 0; deltaz = 1;
ENDIF ENDIF
! Discretized r positions ordered as dx*(0 1 2 -3 -2 -1) ! Discretized r positions ordered as dx*(0 1 2 -3 -2 -1)
ALLOCATE(zarray(irs:ire)) ALLOCATE(zarray(irs:ire))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment