VMEC
8.52
3D Equilibrium solver with nested flux surfaces.
Toggle main menu visibility
Loading...
Searching...
No Matches
heading.f90
Go to the documentation of this file.
1
!> \file
2
!> \brief Open output files and print banner message at the top.
3
4
!> \brief Open output files and print banner message at the top.
5
!>
6
!> @param extension input file "extension": part after \c 'input.' .
7
SUBROUTINE
heading
(extension)
8
USE
vmec_main
,
ONLY
: rprec
9
USE
vparams
,
ONLY
:
nthreed
10
USE
vmec_params
,
ONLY
:
version_
11
IMPLICIT NONE
12
13
CHARACTER(LEN=50)
,
PARAMETER
:: banner =
' THIS IS VMEC2000, A 3D EQUILIBRIUM CODE, VERSION '
14
CHARACTER(LEN=*)
,
PARAMETER
:: VersionID1 =
' Lambda: Full Radial Mesh. L-Force: hybrid full/half.'
15
16
CHARACTER(LEN=*)
,
intent(in)
:: extension
17
18
CHARACTER(LEN=50)
:: Version
19
LOGICAL
:: lfirst
20
21
CHARACTER(LEN=100)
:: computer, os, os_release
22
23
! Open output files
24
CALL
open_output_files
(extension, lfirst)
25
26
IF
(lfirst)
then
27
WRITE
(*,
'(2a)'
)
' PROCESSING INPUT.'
, trim(extension)
28
29
version = trim(adjustl(
version_
))
30
31
! SAL some weird error about file not being ready
32
CALL
flush(
nthreed
)
33
34
WRITE
(
nthreed
,
'(a,1x,a,/,a,/)'
) trim(banner), trim(version), trim(versionid1)
35
WRITE
(*,
'(1x,a,1x,a,/,1x,a,/)'
) trim(banner), trim(version), trim(versionid1)
36
end if
37
38
END SUBROUTINE
heading
heading
subroutine heading(extension)
Open output files and print banner message at the top.
Definition
heading.f90:8
vmec_main
Definition
vmec_main.f90:2
vmec_params
Definition
vmec_params.f90:2
vmec_params::version_
character(len= *), parameter version_
Definition
vmec_params.f90:41
vparams
Definition
vparams.f90:2
vparams::nthreed
integer nthreed
Definition
vparams.f90:28
open_output_files
subroutine open_output_files(extension, lfirst)
Open output files.
Definition
open_output_files.f90:9
src
heading.f90
Generated on
for VMEC by
1.17.0