A module for calculating and writing the main GS2 outputs.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real, | private | :: | omegatinst | ||||
real, | public | :: | omegatol | ||||
logical, | private | :: | print_line | ||||
logical, | private | :: | print_flux_line | ||||
logical, | private | :: | print_summary | ||||
logical, | private | :: | write_line | ||||
logical, | private | :: | write_flux_line | ||||
logical, | private | :: | write_omega | ||||
logical, | private | :: | write_omavg | ||||
logical, | private | :: | write_ascii | ||||
logical, | private | :: | write_gs | ||||
logical, | private | :: | write_ql_metric | ||||
logical, | private | :: | write_g | ||||
logical, | private | :: | write_gyx | ||||
logical, | private | :: | write_eigenfunc | ||||
logical, | private | :: | write_fields | ||||
logical, | private | :: | write_final_fields | ||||
logical, | private | :: | write_final_antot | ||||
logical, | private | :: | write_final_moments | ||||
logical, | private | :: | write_avg_moments | ||||
logical, | private | :: | write_parity | ||||
logical, | private | :: | write_moments | ||||
logical, | private | :: | ob_midplane | ||||
logical, | private | :: | write_final_db | ||||
logical, | private | :: | write_full_moments_notgc | ||||
logical, | private | :: | write_cross_phase | ||||
logical, | private | :: | write_final_epar | ||||
logical, | private | :: | write_kpar | ||||
logical, | private | :: | write_heating | ||||
logical, | private | :: | write_lorentzian | ||||
logical, | public | :: | write_fluxes | ||||
logical, | private | :: | write_fluxes_by_mode | ||||
logical, | private | :: | write_kinetic_energy_transfer | ||||
logical, | private | :: | write_verr | ||||
logical, | private | :: | write_cerr | ||||
logical, | private | :: | write_max_verr | ||||
logical, | public | :: | exit_when_converged | ||||
logical, | private | :: | use_nonlin_convergence | ||||
logical, | private | :: | dump_check1 | ||||
logical, | private | :: | dump_check2 | ||||
logical, | public | :: | dump_fields_periodically | ||||
logical, | public | :: | make_movie | ||||
logical, | public | :: | save_for_restart | ||||
logical, | public | :: | save_distfn | ||||
logical, | public | :: | save_glo_info_and_grids | ||||
logical, | public | :: | save_velocities | ||||
logical, | private | :: | write_symmetry | ||||
logical, | private | :: | write_correlation_extend | ||||
logical, | private | :: | write_correlation | ||||
logical, | private | :: | write_nl_flux_dist | ||||
logical, | private | :: | file_safety_check | ||||
logical, | private | :: | append_old | ||||
logical, | private | :: | write_phi_over_time | ||||
logical, | private | :: | write_apar_over_time | ||||
logical, | private | :: | write_bpar_over_time | ||||
logical, | private | :: | write_jext | ||||
integer, | public | :: | nwrite | ||||
integer, | public | :: | nmovie | ||||
integer, | public | :: | navg | ||||
integer, | public | :: | nsave | ||||
integer, | private | :: | igomega | ||||
integer, | private | :: | nwrite_mult | ||||
integer, | private | :: | nc_sync_freq | ||||
integer, | private | :: | trin_istep | = | 0 |
Variables for convergence condition testing |
|
integer, | private | :: | conv_isteps_converged | = | 0 | ||
real, | private, | allocatable, dimension(:) | :: | conv_heat | |||
real, | private | :: | heat_sum_av | = | 0 | ||
real, | private | :: | heat_av | = | 0 | ||
real, | private | :: | heat_av_test | = | 0 | ||
logical, | private | :: | write_any | ||||
logical, | private | :: | write_any_fluxes | ||||
logical, | private | :: | dump_any | ||||
logical, | private | :: | initialized | = | .false. | ||
complex, | private, | allocatable, dimension (:,:,:) | :: | domega | |||
complex, | private, | dimension (:, :), allocatable | :: | omega |
Complex frequency, and time-averaged complex frequency |
||
complex, | public, | dimension (:, :), allocatable | :: | omegaavg |
Complex frequency, and time-averaged complex frequency |
||
integer, | private | :: | out_unit | ||||
integer, | private | :: | heat_unit | ||||
integer, | private | :: | heat_unit2 | ||||
integer, | private | :: | lpc_unit | ||||
integer, | private | :: | jext_unit | ||||
integer, | private | :: | phase_unit | ||||
integer, | private | :: | dist_unit | ||||
integer, | private | :: | yxdist_unit | ||||
integer, | private | :: | dump_check1_unit | ||||
integer, | private | :: | dump_check2_unit | ||||
integer, | private | :: | res_unit | ||||
integer, | private | :: | res_unit2 | ||||
integer, | private | :: | parity_unit | ||||
integer, | private | :: | cres_unit | ||||
integer, | private | :: | conv_nstep_av | ||||
integer, | private | :: | conv_min_step | ||||
integer, | private | :: | conv_max_step | ||||
integer, | private | :: | conv_nsteps_converged | ||||
complex, | private, | dimension (:,:,:), allocatable | :: | omegahist |
Frequency time history, size |
||
type(heating_diagnostics), | private | :: | h |
Heating diagnostics summed over space at the current timestep |
|||
type(heating_diagnostics), | private, | dimension(:), save, allocatable | :: | h_hist |
Heating diagnostics summed over space over the last navg timesteps |
||
type(heating_diagnostics), | private, | dimension(:,:), save, allocatable | :: | hk |
Heating diagnostics as a function of at the current timestep |
||
type(heating_diagnostics), | private, | dimension(:,:,:), save, allocatable | :: | hk_hist |
Heating diagnostics as a function of over the last navg timesteps |
||
real, | private, | dimension(:,:,:), allocatable | :: | j_ext_hist | |||
real, | private, | dimension (:,:,:), allocatable | :: | pflux_tormom | |||
real, | public | :: | start_time | = | 0.0 | ||
real, | public, | dimension (:), allocatable | :: | pflux_avg | |||
real, | public, | dimension (:), allocatable | :: | qflux_avg | |||
real, | public, | dimension (:), allocatable | :: | heat_avg | |||
real, | public, | dimension (:), allocatable | :: | vflux_avg | |||
real, | private | :: | conv_test_multiplier | ||||
integer, | private | :: | ntg_extend | ||||
integer, | private | :: | nth0_extend | ||||
integer, | private | :: | nout | = | 1 | ||
integer, | private | :: | nout_movie | = | 1 | ||
integer, | private | :: | nout_big | = | 1 | ||
complex, | private | :: | wtmp_old | = | 0. |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (:,:) | :: | a | ||
complex, | intent(in), | dimension (:,:) | :: | b | ||
real, | intent(out) | :: | axb | |||
real, | intent(out), | dimension (:,:) | :: | axb_by_mode |
FIXME : Add documentation
Here we calculate the correction factors for each possible kperp
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | a | ||
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | b | ||
real, | intent(out) | :: | axb | |||
real, | intent(out), | dimension (:,:) | :: | axb_by_mode |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (:,:) | :: | a | ||
complex, | intent(in), | dimension (:,:) | :: | b | ||
complex, | intent(out) | :: | axb | |||
complex, | intent(out), | dimension (:,:) | :: | axb_by_mode |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | a | ||
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | b | ||
complex, | intent(out) | :: | axb | |||
complex, | intent(out), | dimension (:,:) | :: | axb_by_mode |
Calculate the field-line average
Calculate the field-line average (real values)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension (-ntgrid:) | :: | fld_in | ||
real, | intent(out) | :: | fld_out |
Calculate the field-line average (complex values)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (-ntgrid:) | :: | fld_in | ||
complex, | intent(out) | :: | fld_out |
A linear estimate of the diffusivity, used for Trinity testing
Calculates <|field|2 kperp2>_theta / <|field|2>_theta. Useful for simple quasilinear metric
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension(-ntgrid:ntgrid, ntheta0, naky) | :: | field |
Calculates a simple gamma/kperp2 QL flux metric
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension(ntheta0, naky) | :: | growth_rates |
Calculates the instantaneous omega from chinew = chi * exp(-i * omega * dt) with chi = phi + apar + bpar. This gives omega = log(chinew/chi) * i / dt.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | ig | ||
real, | intent(in), | optional | :: | tolerance |
Write the diagnostics namelist to file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
Unit of an open file to write to |
Perform some basic checking of the diagnostic input parameters, and write the results to file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | report_unit |
Unit of an open file to write to |
Initialise this module and all its dependencies, including defining NetCDF vars, call real_init, which calls read_parameters; broadcast all the different write flags.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | list |
If true, this is a "list-mode run" and so turn off print_flux_line and print_line if set |
||
integer, | intent(in) | :: | nstep |
Maximum number of steps to take |
||
type(diagnostics_config_type), | intent(in), | optional | :: | gs2_diagnostics_config_in |
Input parameters for this module |
|
type(standard_header_type), | intent(in), | optional | :: | header |
Header for files with build and run information |
Check if we can write the restart files
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | check_writable |
Has the user requested this check |
||
logical, | intent(in) | :: | need_restart |
Has the user requested restart files |
||
logical, | intent(inout) | :: | extra_files |
Has the user requested distribution function to be written |
Read the input parameters; open the various text output files according to the relevant input flags; allocate and zero the module-level flux arrays, gs2_diagnostics_knobs and gs2_diagnostics_knobs
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | is_list_run |
If true, this is a "list-mode run" and so turn off print_flux_line and print_line if set |
||
type(diagnostics_config_type), | intent(in), | optional | :: | gs2_diagnostics_config_in |
Input parameters for this module |
|
type(standard_header_type), | intent(in), | optional | :: | header |
Header for files with build and run information |
Read the input parameters for the diagnostics module
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | is_list_run |
If true, this is a "list-mode run" and so turn off print_flux_line and print_line if set |
||
type(diagnostics_config_type), | intent(in), | optional | :: | gs2_diagnostics_config_in |
Configuration for this module, can be used to set new default values or avoid reading the input file |
|
logical, | intent(in), | optional | :: | warn_nonfunctional |
Finalise the diagnostics module, writing final timestep diagnostics and closing any open files
Save some extra information in final restart files
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | save_for_restart |
See save_for_restart |
||
logical, | intent(in) | :: | save_distfn |
See save_distfn |
||
logical, | intent(in) | :: | save_glo_info_and_grids | |||
logical, | intent(in) | :: | save_velocities |
See save_velocities |
||
real, | intent(in) | :: | user_time |
Current simulation time |
||
character(len=*), | intent(in), | optional | :: | fileopt_base |
Optional string to add to file name |
Deallocate the gs2_diagnostics module-level arrays
Close various text output files
Calculate and write the various diagnostic quantities.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | istep |
Current timestep |
||
logical, | intent(out) | :: | exit |
If true, simulation should stop (for example, because it has converged) |
||
logical, | intent(in), | optional | :: | debopt |
If true, turn on some debug prints |
|
logical, | intent(in), | optional | :: | force |
Calculate gs2_diagnostics_knobs for linear simulations or if run_parameters_knobs is on; otherwise set gs2_diagnostics_knobs and gs2_diagnostics_knobs to zero
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | istep |
The current timestep |
||
logical, | intent(in) | :: | debug |
Turn on some debug messages |
||
logical, | intent(inout) | :: | exit |
Returns true if the simulation has converged (see omegatol) or if a numerical instability has occurred (see gs2_diagnostics_knobs). |
Compute volume averages of the fields and write the fields, field averages, heating and frequency to the netCDF files
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | time |
Simulation time |
||
integer, | intent(in) | :: | istep |
Current timestep |
||
real, | intent(out) | :: | phi2 |
Fields squared |
||
real, | intent(out) | :: | apar2 |
Fields squared |
||
real, | intent(out) | :: | bpar2 |
Fields squared |
||
real, | intent(out), | dimension (:, :) | :: | phitot |
FIXME: add documentation. Needs phinorm documenting |
Write normalised to the value of at the outboard midplane
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_id |
NetCDF ID of the file to write to |
||
logical, | intent(in) | :: | write_text |
If true, write text file |
||
complex, | intent(inout), | dimension (:,:) | :: | phi0 |
The normalising factor for the fields that is actually used. See write_eigenfunc for more details |
Write some geometry information to text file <runname>.g
Transform to real space, then write to netCDF
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | time |
Current simulation time |
Print estimated frequencies and growth rates to screen/stdout
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension (:, :) | :: | phitot |
Total magnitude of all the fields |
Calculate and write the time-averaged antenna current to jext_unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | time |
Current simulation time |
||
integer, | intent(in) | :: | istep |
Current timestep |
Write various moments to netCDF
Calculate the cross-phase (see get_cross_phase) and write to the phase_unit file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | time |
Current simulation time |
Write estimated frequency and growth rates to out_unit for an individual point
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | time |
Simulation time |
||
integer, | intent(in) | :: | it |
- and -indices |
||
integer, | intent(in) | :: | ik |
- and -indices |
||
real, | intent(in) | :: | phitot |
Simulation time |
Write instantaneous growth rate and frequency to out_unit for an individual point
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | it |
- and -indices |
||
integer, | intent(in) | :: | ik |
- and -indices |
Write time-averaged growth rate and frequency to out_unit for an individual point
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | it | |||
integer, | intent(in) | :: | ik |
Write the (total) heating diagnostics to heat_unit and heat_unit2 (per-species)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | t | |||
integer, | intent(in) | :: | file_unit | |||
integer, | intent(in) | :: | file_unit2 | |||
type(heating_diagnostics), | intent(in) | :: | h |
Heating diagnostics |
Calculate the momentum flux as a function of and write to netCDF
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_id |
NetCDF ID of the file to write to |
||
integer, | intent(in) | :: | nout |
Current timestep |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_id |
NetCDF ID of the file to write to |
||
integer, | intent(in) | :: | nout |
Current timestep |
Calculate the poloidal distributions of the fluxes of particles, parallel momentum, perpendicular momentum, and energy (see section 3.1 and appendix A of Ball et al. PPCF 58 (2016) 045023 as well as section 5 of "GS2 analytic geometry specification")
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_id |
NetCDF ID of the file to write to |
||
integer, | intent(in) | :: | nout |
Current timestep |
Calculate the correlation function over the physical domain and write to netCDF
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_id |
NetCDF ID of the file to write to |
||
integer, | intent(in) | :: | nout |
Current timestep |
Calculate the correlation function over the extended domain and write to netCDF
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_id |
NetCDF ID of the file to write to |
||
real, | intent(in) | :: | time |
Current and previous simulation times |
||
real, | intent(in) | :: | time_old |
Current and previous simulation times |
Calculate average parity of distribution function under , and write to parity_unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | t | |||
integer, | intent(in) | :: | file_unit |
Open formatted file to write text to |
||
logical, | intent(in) | :: | write_text |
If false, don't calculate or write parity |
Calculate flux surfgace averaged low-order moments of and write to netCDF
Calculate moments (density, parallel flow, and parallel and perpendicular temperatures) in non-guiding centre coordinates and write to netCDF
Calculate the field-line average of and write to dump_check1_unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | t |
Calculate at igomega
and write to dump_check2_unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | t |
Write out to text file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | t |
Flush text files (only out_unit, res_unit, lpc_unit, and parity_unit)
Trinity convergence condition - simple and experimental look for the averaged differential of the summed averaged heat flux to drop below a threshold
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | istep | |||
real, | intent(in) | :: | heat_flux | |||
logical, | intent(inout) | :: | exit |
Calculate some heating diagnostics, and update their time history
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | istep | |||
integer, | intent(in) | :: | navg | |||
type(heating_diagnostics), | intent(inout) | :: | h |
Heating diagnostics summed over space at the current timestep |
||
type(heating_diagnostics), | intent(inout), | dimension(:,:) | :: | hk |
Heating diagnostics as a function of at the current timestep |
Calculate the time-averaged antenna current
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | istep |
Current simulation timestep |
||
real, | intent(inout), | dimension(:,:) | :: | j_ext |
Calculate the time-averaged complex frequency, check convergence criterion, and numerical instability criterion.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | istep |
The current timestep |
||
logical, | intent(inout) | :: | exit |
Should the simulation exit?
FIXME: This could be |
||
complex, | intent(out), | dimension (:,:) | :: | omegaavg |
The time-averaged complex frequency |
|
logical, | intent(in), | optional | :: | debopt |
If true, write some debug messages |
Summed magnitude of all the fields
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(out), | dimension (:,:) | :: | phitot |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | a | ||
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | b | ||
real, | intent(out) | :: | axb | |||
real, | intent(out), | dimension (:,:) | :: | axb_by_mode |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (:,:) | :: | a | ||
complex, | intent(in), | dimension (:,:) | :: | b | ||
real, | intent(out) | :: | axb | |||
real, | intent(out), | dimension (:,:) | :: | axb_by_mode |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension (:,:) | :: | f | ||
real, | intent(out) | :: | favg |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension (:,:) | :: | f | ||
real, | intent(out), | dimension (:) | :: | favg |
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nensembles | |||
real, | intent(out) | :: | time_int |
Calculate the field-line average (real values)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in), | dimension (-ntgrid:) | :: | fld_in | ||
real, | intent(out) | :: | fld_out |
Calculate the field-line average (complex values)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (-ntgrid:) | :: | fld_in | ||
complex, | intent(out) | :: | fld_out |
This is a highly simplified synthetic diagnostic which
calculates the cross phase between the electron density and the
perpendicular electron temperature for comparisons with DIII-D.
Returns the value of the cross-phase at the outboard midplane and
integrated over all v and x. We can generalize this routine to
other fields at some point, but for now this is just a skeleton for
a more realistic synthetic diagnostic.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(out) | :: | phase_tot | |||
real, | intent(out) | :: | phase_theta |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | a | ||
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | b | ||
complex, | intent(out) | :: | axb | |||
complex, | intent(out), | dimension (:,:) | :: | axb_by_mode |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (:,:) | :: | a | ||
complex, | intent(in), | dimension (:,:) | :: | b | ||
complex, | intent(out) | :: | axb | |||
complex, | intent(out), | dimension (:,:) | :: | axb_by_mode |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (:,:) | :: | f | ||
complex, | intent(out) | :: | favg |
Calculate the correlation function over the extended domain
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(out), | dimension (:,:,:) | :: | cfnc | ||
real, | intent(out), | dimension (:,:,:) | :: | phi2extend |
Calculate the correlation function on the physical domain
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(out), | dimension (-ntgrid:,:) | :: | cfnc_2pi |
Write at ik=it=is=1, ig=0
to text file <runname>.dist
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
Write distribution function ( or possibly ?) in real space to text file
"
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit | |||
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | phi |
Electrostatic potential and parallel magnetic field |
|
complex, | intent(in), | dimension (-ntgrid:,:,:) | :: | bpar |
Electrostatic potential and parallel magnetic field |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex, | intent(in), | dimension (:) | :: | unord | ||
complex, | intent(out), | dimension (:) | :: | ord |