1 | module madx_ptc_script_module |
---|
2 | !This module enables the user to execute a PTC script |
---|
3 | !that enables additional functionality that is not possible with MAD-X scripting language |
---|
4 | use madx_keywords |
---|
5 | ! use pointer_lattice |
---|
6 | implicit none |
---|
7 | save |
---|
8 | private |
---|
9 | |
---|
10 | !============================================================================================ |
---|
11 | ! PUBLIC INTERFACE |
---|
12 | public :: execscript, execginoscript |
---|
13 | |
---|
14 | |
---|
15 | !============================================================================================ |
---|
16 | ! PRIVATE |
---|
17 | ! data structures |
---|
18 | |
---|
19 | ! routines |
---|
20 | |
---|
21 | !============================================================================================ |
---|
22 | |
---|
23 | contains |
---|
24 | !____________________________________________________________________________________________ |
---|
25 | |
---|
26 | subroutine execscript(scriptname) |
---|
27 | use twissafi |
---|
28 | implicit none |
---|
29 | integer scriptname(*) |
---|
30 | character(48) scriptfilename |
---|
31 | character(48) charconv |
---|
32 | |
---|
33 | scriptfilename = charconv(scriptname) |
---|
34 | print*, "I am in execsript: Script name is ", scriptfilename |
---|
35 | CALL read_ptc_command77(scriptfilename) |
---|
36 | print*, "Exiting execscript" |
---|
37 | |
---|
38 | end subroutine execscript |
---|
39 | |
---|
40 | subroutine execginoscript(scriptname) |
---|
41 | use twissafi |
---|
42 | implicit none |
---|
43 | integer scriptname(*) |
---|
44 | character(48) charconv |
---|
45 | character(48) scriptfilename |
---|
46 | |
---|
47 | scriptfilename = charconv(scriptname) |
---|
48 | print*, "I am in execginosript: Script name is ", scriptfilename |
---|
49 | CALL gino_ptc_command77(scriptfilename) |
---|
50 | print*, "Exiting execginoscript" |
---|
51 | |
---|
52 | end subroutine execginoscript |
---|
53 | |
---|
54 | end module madx_ptc_script_module |
---|