-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/STELLOPT_QI
- Loading branch information
Showing
37 changed files
with
2,205 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
!----------------------------------------------------------------------- | ||
! Module: thrift_globals | ||
! Authors: S. Lazerson ([email protected]) | ||
! Date: 10/16/2024 | ||
! Description: This module contains the THRIFT global variables | ||
! needed by the input namelist. | ||
!----------------------------------------------------------------------- | ||
MODULE thrift_globals | ||
!----------------------------------------------------------------------- | ||
! Libraries | ||
!----------------------------------------------------------------------- | ||
USE stel_kinds, ONLY: rprec | ||
|
||
!----------------------------------------------------------------------- | ||
! Module Variables | ||
!----------------------------------------------------------------------- | ||
IMPLICIT NONE | ||
|
||
! Moved from thrift_vars | ||
LOGICAL :: lverbj, leccd, lnbcd, lohmic | ||
INTEGER :: nrho, ntimesteps, n_eq, npicard, nsj | ||
REAL(rprec) :: tstart, tend, jtol, picard_factor, boot_factor | ||
|
||
! Moved from thrift_vars (For ECCD in general) | ||
INTEGER, PARAMETER :: ntime_ecrh = 200 | ||
REAL(rprec), DIMENSION(ntime_ecrh) :: PECRH_AUX_T, PECRH_AUX_F | ||
REAL(rprec) :: ecrh_rc, ecrh_w | ||
|
||
! Moved from thrift_vars (for TRAVIS) | ||
INTEGER, PARAMETER :: nsys = 16 | ||
INTEGER :: nra_ecrh, nphi_ecrh | ||
INTEGER, DIMENSION(nsys) :: wmode_ecrh | ||
REAL(rprec), DIMENSION(nsys) :: freq_ecrh, power_ecrh | ||
REAL(rprec), DIMENSION(nsys,3) :: antennaposition_ecrh, & | ||
targetposition_ecrh, rbeam_ecrh, rfocus_ecrh | ||
|
||
! Moved from thrift_vars (For DKES) | ||
INTEGER, PARAMETER :: DKES_NS_MAX = 64 | ||
INTEGER, PARAMETER :: DKES_NSTAR_MAX = 32 | ||
INTEGER :: nruns_dkes | ||
INTEGER, DIMENSION(:), POINTER :: DKES_rundex | ||
INTEGER, DIMENSION(DKES_NS_MAX) :: DKES_K | ||
REAL(rprec), DIMENSION(DKES_NSTAR_MAX) :: DKES_Erstar, DKES_Nustar | ||
|
||
! Moved from thrift_runtime | ||
INTEGER :: nparallel_runs, mboz, nboz | ||
CHARACTER(256) :: bootstrap_type, eccd_type, vessel_ecrh, & | ||
mirror_ecrh, targettype_ecrh, antennatype_ecrh, & | ||
etapar_type | ||
|
||
|
||
|
||
CONTAINS | ||
|
||
! These expose the global variables through ctypes | ||
INTEGER FUNCTION getmaxtimeecrh() | ||
IMPLICIT NONE | ||
getmaxtimeecrh = ntime_ecrh | ||
END FUNCTION getmaxtimeecrh | ||
|
||
INTEGER FUNCTION getmaxsys() | ||
IMPLICIT NONE | ||
getmaxsys = nsys | ||
END FUNCTION getmaxsys | ||
|
||
INTEGER FUNCTION getmaxns() | ||
IMPLICIT NONE | ||
getmaxns = DKES_NS_MAX | ||
END FUNCTION getmaxns | ||
|
||
INTEGER FUNCTION getmaxnstar() | ||
IMPLICIT NONE | ||
getmaxnstar =DKES_NSTAR_MAX | ||
END FUNCTION getmaxnstar | ||
|
||
END MODULE thrift_globals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ObjectFiles = \ | ||
penta_interface_mod.o \ | ||
bspline.o \ | ||
coeff_var_pass.o \ | ||
io_unit_spec.o \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.