PB3D  [2.45]
Ideal linear high-n MHD stability in 3-D
Functions/Subroutines
driver_eq Module Reference

Driver of the equilibrium part of PB3D. More...

Functions/Subroutines

integer function, public run_driver_eq (grid_eq_out, grid_eq_B_out, eq_1_out, eq_2_out, vac)
 Main driver of PB3D equilibrium part. More...
 

Detailed Description

Driver of the equilibrium part of PB3D.

Function/Subroutine Documentation

◆ run_driver_eq()

integer function, public driver_eq::run_driver_eq ( type(grid_type), intent(inout), target  grid_eq_out,
type(grid_type), intent(inout), pointer  grid_eq_B_out,
type(eq_1_type), intent(inout)  eq_1_out,
type(eq_2_type), intent(inout)  eq_2_out,
type(vac_type), intent(inout)  vac 
)

Main driver of PB3D equilibrium part.

  • sets up ([out] means for output):
    • grid_eq [out] (for HELENA, only first Richardson level)
    • grid_eq_B [out] (for VMEC, equal to grid_eq_out)
    • eq_1 [out] (only first Richardson level)
    • eq_2 [out] (for HELENA, only first Richardson level) where output means
    • on the equilibrium grid if X_grid style is 1,3 (no change).
    • on a redistributed grid if X_grid_style is 2
  • writes to HDF5:
    • grid_eq (for HELENA, only first Richardson level)
    • grid_eq_B (for VMEC, equal to grid_eq)
    • eq_1 (only first Richardson level)
    • eq_2 (only for HELENA)
  • deallocates:
    • grid_eq [out] before setting up
    • grid_B_eq [out] before setting up
    • eq_2 [out] before setting up
Returns
ierr
Parameters
[in,out]grid_eq_outoutput equilibrium grid
[in,out]grid_eq_b_outoutput field-aligned equilibrium grid
[in,out]eq_1_outflux equilibrium variables in output grid
[in,out]eq_2_outmetric equilibrium variables in output grid
[in,out]vacvacuum variables

Definition at line 49 of file driver_eq.f90.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: