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

shear setup

parent 93e37b31
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ subroutine auxval
CALL set_jgrid ! perp kin
CALL set_kxgrid ! radial modes (MPI distributed by FFTW)
CALL set_kxgrid(shear) ! radial modes (MPI distributed by FFTW)
CALL set_kygrid ! azymuthal modes
......
......@@ -341,12 +341,16 @@ CONTAINS
END DO
END SUBROUTINE set_kygrid
SUBROUTINE set_kxgrid
SUBROUTINE set_kxgrid(shear)
USE prec_const
USE model, ONLY: LINEARITY
IMPLICIT NONE
REAL(dp), INTENT(IN) :: shear
INTEGER :: i_, counter
IF(shear .GT. 0._dp) THEN
IF(my_id.EQ.0) write(*,*) 'Magnetic shear detected: set up sheared kx grid..'
Lx = Ly/(2._dp*pi*shear)
ENDIF
Nkx = Nx;
! Local data
! Start and END indices of grid
......
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