V3FIT
Functions/Subroutines | Variables
shared_functions Module Reference

Module contained subroutines and functions updating MHD forces and Wmhd. More...

Functions/Subroutines

subroutine funct_island
 Parallel/Serial routine to compute forces for perturbed state. More...
 
subroutine getfsq (fsqout)
 
real(dp) function getwmhd (p)
 Returns perturbed MHD+KINETIC energy. More...
 
subroutine linesearch (xcmin, fsq_min)
 Performs line search along xc vector for minimum fsq_total1. More...
 
subroutine init_ptrs (xtarget, ptr1, ptr2, ptr3, ptr4, ptr5, ptr6)
 Initializes pointers for xc (displacement variables) and gc (force) arrays. More...
 

Variables

integer, private nsmin
 
integer, private nsmax
 

Detailed Description

Module contained subroutines and functions updating MHD forces and Wmhd.

Author
S. P. Hirshman
Date
July, 2014

Function/Subroutine Documentation

◆ funct_island()

subroutine shared_functions::funct_island

Parallel/Serial routine to compute forces for perturbed state.

Author
S. K. Seal and S. P. Hirshman

Definition at line 26 of file shared_functions.f90.

◆ getwmhd()

real(dp) function shared_functions::getwmhd ( real(dp), dimension(neqs), intent(in)  p)

Returns perturbed MHD+KINETIC energy.

Author
S. P. Hirshman, R. Sanchez
Parameters
[in]pdisplacement vector

Definition at line 181 of file shared_functions.f90.

◆ init_ptrs()

subroutine shared_functions::init_ptrs ( real(dp), dimension(0:mpol,-ntor:ntor,ndims,ns), intent(in), target  xtarget,
real(dp), dimension(:,:,:), pointer  ptr1,
real(dp), dimension(:,:,:), pointer  ptr2,
real(dp), dimension(:,:,:), pointer  ptr3,
real(dp), dimension(:,:,:), pointer  ptr4,
real(dp), dimension(:,:,:), pointer  ptr5,
real(dp), dimension(:,:,:), pointer  ptr6 
)

Initializes pointers for xc (displacement variables) and gc (force) arrays.

Parameters
[in]xtargetinput 3D, ndims-component arrays
ptr41st (s) array subsection (lasym=F,T)
ptr52nd (u) array subsection
ptr63rd (v) array subsection

Definition at line 263 of file shared_functions.f90.

◆ linesearch()

subroutine shared_functions::linesearch ( real(dp), dimension(neqs), intent(inout)  xcmin,
real(dp), intent(inout)  fsq_min 
)

Performs line search along xc vector for minimum fsq_total1.

Author
S. P. Hirshman (2016)

Definition at line 209 of file shared_functions.f90.