Commit e6e2f644 authored by Andreas Adelmann's avatar Andreas Adelmann

Merge branch 'master' of gitorious.psi.ch:opal/regression-tests

parents 29e542d0 41323cb4
......@@ -5,8 +5,8 @@ Option, AUTOPHASE=4;
Title, string="Phase 1 of PSI FEL 250 Injector with CTF3 RF Photoinjector";
FINSB01_RACC_phi = 0;
FINSB02_RACC_phi = 0;
FINSB01_RACC_phi = 0;
FINSB02_RACC_phi = 0;
REPARTFREQ = 100;
MINSTEPFORREBIN = 600;
......@@ -74,7 +74,7 @@ SCREEN6: Monitor, L = 0.01, ELEMEDGE = 3.0, OUTFN = "Screen6.h5";
SCREEN7: Monitor, L = 0.01, ELEMEDGE = 3.126, OUTFN = "Screen7.h5";
SCREEN8: Monitor, L = 0.01, ELEMEDGE = 3.252, OUTFN = "Screen8.h5";
SCREEN9: Monitor, L = 0.01, ELEMEDGE = 4.126, OUTFN = "Screen9.h5";
SCREEN10: Monitor, L = 0.01, ELEMEDGE = 5.126, OUTFN = "Screen10.h5";
SCREEN10: Monitor, L = 0.01, ELEMEDGE = 5.126, OUTFN = "Screen10.h5";
SCREENS: Line = (SCREEN1,SCREEN2,SCREEN3,SCREEN4,SCREEN5,SCREEN6,SCREEN7,SCREEN8,SCREEN9,SCREEN10);
// End: Screen monitors //////////////////////////////////////////////////////////////////////////////////////
......@@ -112,13 +112,9 @@ beam1: BEAM, PARTICLE = ELECTRON, pc = P0, NPART = 20000, BFREQ = BF , BCURRENT
SELECT, LINE=Injector;
// Simulation of the gun with step size DTGUN
TRACK, LINE= Injector, BEAM=beam1, MAXSTEPS=100, DT=5.0e-12, ZSTOP=0.03;
// Simulation of the gun with step size DTGUN
TRACK, LINE= Injector, BEAM=beam1, MAXSTEPS=100, DT=5.0e-12, ZSTOP=0.03;
RUN, METHOD = "PARALLEL-T", BEAM = beam1, FIELDSOLVER = Fs1, DISTRIBUTION = Dist1;
ENDTRACK;
TRACK, LINE= Injector, BEAM= beam1, MAXSTEPS= 30, DT= 5.0e-12, ZSTOP= 0.1;
RUN, METHOD= "PARALLEL-T", BEAM= beam1, FIELDSOLVER= Fs1;
ENDTRACK;
QUIT;
#!/bin/bash
#!/bin/bash
cp RestartTest-6.h5.bak RestartTest-6.h5
rm -f RestartTest-6.stat
rm -f RestartTest-6.stat
rm -f RestartTest-6.lbal
mpirun -np 4 $OPAL_EXE_PATH/opal RestartTest-6.in -restart -1 --commlib mpi --info 0 --warn 0 2>&1
for X in h5 stat lbal;do mv RestartTest-6.$X RestartTest-6.2.$X;done
mpirun -np 4 $OPAL_EXE_PATH/opal RestartTest-6.2.in -restart -1 --commlib mpi --info 0 --warn 0 2>&1
for X in h5 stat lbal;do mv RestartTest-6.2.$X RestartTest-6.$X;done
#!/bin/bash
#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe orte 4
......@@ -12,6 +12,14 @@ cp $MACHINE_FILE machinefile.last
cd $REG_TEST_DIR
cp RestartTest-6.h5.bak RestartTest-6.h5
rm -f RestartTest-6.stat
rm -f RestartTest-6.lbal
OPAL="$OPAL_EXE_PATH/opal RestartTest-6.in -restart -1 --commlib mpi --info 0 --warn 0 2>&1"
CMD="$OPENMPI/bin/mpirun -x LD_LIBRARY_PATH -machinefile $MACHINE_FILE -np $NSLOTS $OPAL "
$CMD
for X in h5 stat lbal;do mv RestartTest-6.$X RestartTest-6.2.$X;done
OPAL="$OPAL_EXE_PATH/opal RestartTest-6.2.in -restart -1 --commlib mpi --info 0 --warn 0 2>&1"
CMD="$OPENMPI/bin/mpirun -x LD_LIBRARY_PATH -machinefile $MACHINE_FILE -np $NSLOTS $OPAL "
$CMD
for X in h5 stat lbal;do mv RestartTest-6.2.$X RestartTest-6.$X;done
......@@ -6,6 +6,7 @@
5160 4598 5108 5134
5150 4605 5111 5134
5146 4606 5113 5135
5143 4605 5117 5135
5141 4605 5117 5137
5134 4608 5119 5139
5127 4610 5125 5138
......@@ -36,4 +37,124 @@
4981 4627 5207 5185
4978 4630 5206 5186
4976 4627 5207 5190
4975 4628 5206 5191
4974 4627 5207 5192
4973 4627 5207 5193
4972 4627 5208 5193
4972 4627 5208 5193
4971 4628 5208 5193
4970 4627 5208 5195
4970 4625 5210 5195
4969 4626 5210 5195
4968 4624 5211 5197
4966 4624 5211 5199
4965 4622 5213 5200
4964 4622 5213 5201
4960 4625 5213 5202
4957 4625 5215 5203
4954 4626 5217 5203
4953 4626 5219 5202
4953 4625 5220 5202
4953 4622 5221 5204
4952 4623 5221 5204
4950 4623 5222 5205
4948 4624 5222 5206
4948 4624 5222 5206
4947 4625 5222 5206
4946 4626 5221 5207
4946 4625 5220 5209
4944 4626 5221 5209
4943 4625 5222 5210
4942 4624 5221 5213
4941 4624 5221 5214
4938 4625 5222 5215
4937 4626 5220 5217
4937 4626 5220 5217
4936 4627 5219 5218
4935 4628 5219 5218
4933 4630 5218 5219
4933 4629 5218 5220
4931 4630 5219 5220
4931 4628 5221 5220
4931 4628 5221 5220
4931 4628 5221 5220
4931 4628 5222 5219
4930 4629 5223 5218
4930 5205 4942 4923
4929 5206 4941 4924
4929 5206 4942 4923
4929 5205 4943 4923
4928 5206 4942 4924
4926 5208 4942 4924
4926 5208 4943 4923
4925 5208 4945 4922
4925 5207 4945 4923
4925 5207 4947 4921
4925 5207 4947 4921
4925 5207 4948 4920
4925 5206 4947 4922
4925 5206 4946 4923
4924 5205 4949 4922
4923 5206 4951 4920
4923 5205 4953 4919
4923 5205 4955 4917
4922 5205 4954 4919
4920 5207 4955 4918
4920 5207 4956 4917
4920 5207 4953 4920
4920 5207 4959 4914
4919 5207 4958 4916
4918 5208 4959 4915
4918 5208 4963 4911
4918 5208 4969 4905
4918 5207 4973 4902
4918 5207 4976 4899
4918 5207 4980 4895
4918 5206 4984 4892
4918 5206 4985 4891
4918 5206 4984 4892
4916 5208 4981 4895
4916 5208 4980 4896
4916 5208 4980 4896
4916 5208 4979 4897
4915 5209 4977 4899
4915 5209 4980 4896
4914 5209 4985 4892
4914 5209 4990 4887
4913 5210 4993 4884
4913 5208 5002 4877
4912 5209 5001 4878
4912 5209 5008 4871
4912 5209 5013 4866
4911 5208 5025 4856
4910 5209 5025 4856
4910 5209 5030 4851
4910 5208 5036 4846
4910 5208 5043 4839
4910 5208 5049 4833
4910 5208 5052 4830
4910 5208 5054 4828
4909 5209 5065 4817
4909 5209 5068 4814
4909 5208 5079 4804
4909 5208 5074 4809
4909 5208 5080 4803
4909 5207 5082 4802
4909 5207 5081 4803
4907 5209 5088 4796
4908 5208 5086 4798
4908 5207 5087 4798
4908 5207 5087 4798
4906 5209 5085 4800
4907 5207 5092 4794
4907 5207 5089 4797
4907 5207 5087 4799
4907 5206 5084 4803
4906 5207 5078 4809
4905 5208 5080 4807
4905 5207 5082 4806
4905 5207 5087 4801
4904 5208 5093 4795
4904 5208 5096 4792
4904 5208 5088 4800
4903 5209 5087 4801
4903 5209 5090 4798
6594b23a0a63f849072b9562fc989c9c RestartTest-6.lbal
2da08b69f63c5dec7f8ca644dba31fe7 RestartTest-6.lbal
6117d58561c989522a74e3bc0a251163 RestartTest-6.out
a69967e12419680ad9125c2a5e7bfd3a RestartTest-6.out
This source diff could not be displayed because it is too large. You can view the blob instead.
48e8ee43b4eb5d87fcd1df57697174d1 RestartTest-6.stat
52aad58582a798eae8566758b4078cd3 RestartTest-6.stat
This diff is collapsed.
This diff is collapsed.
FINSS_RGUN_phi= 2.22368; // E= 6.63134 (MeV)
FINSB01_RACC_phi= -0.313154; // E= 36.1093 (MeV)
FINSB02_RACC_phi= 5.835; // E= 67.2898 (MeV)
Option, ECHO=FALSE;
Option, INFO=TRUE;
Option, PSDUMPFREQ=100;
Title, string="SwissFEL Injector, Phase 1 (Feb. 2010)";
FINSS_RGUN_phi= 0;
FINSB01_RACC_phi= 0;
FINSB02_RACC_phi= 0;
call, "FinPhase1.phases";
REPARTFREQ= 100;
value,{FINSS_RGUN_phi, FINSB01_RACC_phi, FINSB02_RACC_phi, REPARTFREQ};
FINSS_RGUN: RFCavity, L = 0.34986, VOLT = 100., FMAPFN = "FINSS-RGUN.dat",
ELEMEDGE = 0.0, TYPE = "STANDING", FREQ = 2998.0,
LAG = FINSS_RGUN_phi + (5.7/180.0*PI);
FIND1_MSOL10: Solenoid, L = 0.6, KS = 0.2089, FMAPFN = "FIND1-MSOL10.T7", ELEMEDGE = 0.0;
l1: Line = (FINSS_RGUN,FIND1_MSOL10,END);
// Define initial uniform beam distribution (== laser distribution)
// or use test particles for autophasing
Dist1:DISTRIBUTION, DISTRIBUTION = "GUNGAUSSFLATTOPTH",
sigmax = 0.000275 * 2.,
sigmapx = 0.0,
corrx = 0.0,
sigmay = 0.000275 * 2.,
sigmapy = 0.0,
corry = 0.0,
sigmat = 0.0,
pt = 0.0,
sigmapt = 0.0,
corrt = 0.0,
ekin = 0.63,
tRise = 0.7e-12,
tFall = 0.7e-12,
tPulseFWHM = 9.9e-12,
DEBIN = 80,
NBIN = 101 , INPUTMOUNITS=EV;
MINSTEPFORREBIN = 1000;
Fs1:FIELDSOLVER, FSTYPE=FFT, MX=16, MY=16, MT=32,
PARFFTX=true, PARFFTY=true, PARFFTT=true,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=INTEGRATED;
qb=0.2e-9;
bfreq=2998.0;
bcurrent=qb*bfreq;
Edes=0.63;
gamma=(Edes+EMASS)/EMASS;
beam1: BEAM, PARTICLE=ELECTRON, GAMMA=gamma, pc=P0, NSLICE=101, BFREQ=bfreq, BCURRENT=bcurrent, CHARGE=-1;
Select, Line = l1;
// Simulation of the gun with step size 0.1 ps
track, line=l1, beam=beam1, MAXSTEPS=1000000, DT=1.0e-12, ZSTOP=1.0;
run, method = "PARALLEL-SLICE", beam = beam1, fieldsolver = Fs1, distribution = Dist1;
endtrack;
Quit;
# 4
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 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0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
#!/bin/bash
cp RestartTest-7.h5.bak RestartTest-7.h5
cp RestartTest-7.stat.bak RestartTest-7.stat
cp RestartTest-7.lbal.bak RestartTest-7.lbal
mpirun -np 4 $OPAL_EXE_PATH/opal RestartTest-7.in -restart -1 --commlib mpi --info 0 --warn 0
"Restart with Envelope-Tracker Phase1 regression from last step of RestartTest-7.h5"
stat "rms_x" last 1E-6 #this is a comment
stat "rms_y" last 1E-6 #this is a comment
stat "rms_s" last 1E-6 #this is a comment
stat "energy" last 1E-6 #this is a comment
#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe orte 1
#$ -N RestartTest-7-RT
#$ -v LD_LIBRARY_PATH,OPENMPI,OPAL_EXE_PATH,REG_TEST_DIR
for X in lbal stat h5;do cp RestartTest-7.$X.bak RestartTest-7.$X;done
MACHINE_FILE=$TMPDIR/machinefile
awk '/^merlin/ {print $1" slots="$2}' $PE_HOSTFILE > $MACHINE_FILE
cp $MACHINE_FILE machinefile.last
cd $REG_TEST_DIR
OPAL="$OPAL_EXE_PATH/opal RestartTest-7.in -restart -1 --commlib mpi --info 0 --warn 0 "
CMD="$OPENMPI/bin/mpirun -x LD_LIBRARY_PATH -machinefile $MACHINE_FILE -np $NSLOTS $OPAL "
$CMD
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
d239c8936575b30f0673b428722e1022 RestartTest-7.lbal
This diff is collapsed.
db19c7df0793d6aaa9cb5aefdc7a0391 RestartTest-7.out
This diff is collapsed.
7a0cb314e34f08423882a276ab1bd38d RestartTest-7.stat
This diff is collapsed.
This diff is collapsed.
FINSS_RGUN_phi= 2.22368; // E= 6.63134 (MeV)
FINSB01_RACC_phi= -0.313154; // E= 36.1093 (MeV)
FINSB02_RACC_phi= 5.835; // E= 67.2898 (MeV)
Option, ECHO=FALSE;
Option, INFO=TRUE;
Option, PSDUMPFREQ=100;
Title, string="SwissFEL Injector, Phase 1 (Feb. 2010)";
FINSS_RGUN_phi= 0;
FINSB01_RACC_phi= 0;
FINSB02_RACC_phi= 0;
call, "FinPhase1.phases";
REPARTFREQ= 100;
value,{FINSS_RGUN_phi, FINSB01_RACC_phi, FINSB02_RACC_phi, REPARTFREQ};
FINSS_RGUN: RFCavity, L = 0.34986, VOLT = 100., FMAPFN = "FINSS-RGUN.dat",
ELEMEDGE = 0.0, TYPE = "STANDING", FREQ = 2998.0,
LAG = FINSS_RGUN_phi + (5.7/180.0*PI);
FIND1_MSOL10: Solenoid, L = 0.6, KS = 0.2089, FMAPFN = "FIND1-MSOL10.T7", ELEMEDGE = 0.0;
l1: Line = (FINSS_RGUN,FIND1_MSOL10,END);
// Define initial uniform beam distribution (== laser distribution)
// or use test particles for autophasing
Dist1:DISTRIBUTION, DISTRIBUTION = "GUNGAUSSFLATTOPTH",
sigmax = 0.000275 * 2.,
sigmapx = 0.0,
corrx = 0.0,
sigmay = 0.000275 * 2.,
sigmapy = 0.0,
corry = 0.0,
sigmat = 0.0,
pt = 0.0,
sigmapt = 0.0,
corrt = 0.0,
ekin = 0.63,
tRise = 0.7e-12,
tFall = 0.7e-12,
tPulseFWHM = 9.9e-12,
DEBIN = 80,
NBIN = 101 , INPUTMOUNITS=EV;
MINSTEPFORREBIN = 1000;
Fs1:FIELDSOLVER, FSTYPE=FFT, MX=16, MY=16, MT=32,
PARFFTX=true, PARFFTY=true, PARFFTT=true,
BCFFTX=open, BCFFTY=open, BCFFTT=open,
BBOXINCR=1, GREENSF=INTEGRATED;
qb=0.2e-9;
bfreq=2998.0;
bcurrent=qb*bfreq;
Edes=0.63;
gamma=(Edes+EMASS)/EMASS;
beam1: BEAM, PARTICLE=ELECTRON, GAMMA=gamma, pc=P0, NSLICE=101, BFREQ=bfreq, BCURRENT=bcurrent, CHARGE=-1;
Select, Line = l1;
// Simulation of the gun with step size 0.1 ps
track, line=l1, beam=beam1, MAXSTEPS=1000000, DT=1.0e-12, ZSTOP=0.5;
run, method = "PARALLEL-SLICE", beam = beam1, fieldsolver = Fs1, distribution = Dist1;
endtrack;
Quit;
#!/bin/bash
mpirun -np 4 $OPAL_EXE_PATH/opal RestartTest-8.in --commlib mpi --info 0 --warn 0
for X in lbal stat h5;do mv RestartTest-8.$X RestartTest-8.2.$X;done
mpirun -np 4 $OPAL_EXE_PATH/opal RestartTest-8.2.in -restart -1 --commlib mpi --info 0 --warn 0
for X in lbal stat h5;do mv RestartTest-8.2.$X RestartTest-8.$X;done
"Restart in a second simulation from the H5Part file written by the first simulation with Envelope-Tracker"
stat "rms_x" last 1E-6 #this is a comment
stat "rms_y" last 1E-6 #this is a comment
stat "rms_s" last 1E-6 #this is a comment
stat "energy" last 1E-6 #this is a comment
#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe orte 1
#$ -N RestartTest-8-RT
#$ -v LD_LIBRARY_PATH,OPENMPI,OPAL_EXE_PATH,REG_TEST_DIR
MACHINE_FILE=$TMPDIR/machinefile
awk '/^merlin/ {print $1" slots="$2}' $PE_HOSTFILE > $MACHINE_FILE
cp $MACHINE_FILE machinefile.last
cd $REG_TEST_DIR
OPAL="$OPAL_EXE_PATH/opal RestartTest-8.in --commlib mpi --info 0 --warn 0 "
CMD="$OPENMPI/bin/mpirun -x LD_LIBRARY_PATH -machinefile $MACHINE_FILE -np $NSLOTS $OPAL "
$CMD
for X in lbal stat h5;do mv RestartTest-8.$X RestartTest-8.2.$X;done
OPAL="$OPAL_EXE_PATH/opal RestartTest-8.2.in -restart -1 --commlib mpi --info 0 --warn 0 "
CMD="$OPENMPI/bin/mpirun -x LD_LIBRARY_PATH -machinefile $MACHINE_FILE -np $NSLOTS $OPAL "
$CMD
for X in lbal stat h5;do mv RestartTest-8.2.$X RestartTest-8.$X;done
# 1
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241
241