Skip to content

Commit 82f8bcf

Browse files
committed
few fixes
1 parent 0b4bdc8 commit 82f8bcf

File tree

3 files changed

+58
-2
lines changed

3 files changed

+58
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import sys, os
2+
BIN = os.path.expanduser("../../")
3+
sys.path.append(BIN)
4+
BIN = os.path.expanduser("../")
5+
sys.path.append(BIN)
6+
7+
from ring_of_CPUs import RingOfCPUs
8+
from Simulation_with_eclouds import Simulation
9+
simulation_content = Simulation()
10+
11+
myCPUring = RingOfCPUs(simulation_content)
12+
13+
myCPUring.run()

test_ring_with_objects/Simulation_with_eclouds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def init_all(self):
1414
self.n_slices = n_slices
1515
self.z_cut = z_cut
1616

17-
n_segments=3
17+
n_segments=70
1818

1919
from LHC import LHC
2020
self.machine = LHC(machine_configuration='Injection', n_segments=n_segments, D_x=0.,
@@ -52,7 +52,7 @@ def init_all(self):
5252
init_unif_edens = 9.000000e+11
5353
N_MP_ele_init = 100000
5454
N_mp_max = N_MP_ele_init*4.
55-
Dh_sc = 1e-3
55+
Dh_sc = .2e-3
5656
nel_mp_ref_0 = init_unif_edens*4*x_aper*y_aper/N_MP_ele_init
5757

5858
import PyECLOUD.PyEC4PyHT as PyEC4PyHT
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
4+
NUMBER_OF_REQUESTED_CORES=4
5+
MAX_NUMBER_OF_CORE_PER_NODE=32
6+
7+
PATH_TO_EXECUTABLE="python /home/HPC/giadarol/test_PyECPyHT/PyParaSlice/test_ring_with_objects/002_test_with_ecloud.py"
8+
SIMULATION_NAME='first'
9+
QUEUE=hpc_inf
10+
#QUEUE=hpc_short
11+
12+
stderr_file=epic.txt
13+
stdout_file=opic.txt
14+
15+
16+
17+
############################################
18+
## DO NOT TOUCH FROM HERE
19+
############################################
20+
21+
job=job_${NUMBER_OF_REQUESTED_CORES}.cmd
22+
23+
rm -f $job
24+
touch $job
25+
chmod 755 $job
26+
touch ${stderr_file}
27+
touch ${stdout_file}
28+
echo "#BSUB -J ${SIMULATION_NAME}" > $job # Job name
29+
echo "#BSUB -o %J.out" >> $job # Job standard output
30+
echo "#BSUB -e %J.err" >> $job # Job standard error
31+
echo "#BSUB -N" >> $job # Job report
32+
echo "#BSUB -B" >> $job # Send mail
33+
echo "#BSUB -q $QUEUE" >> $job
34+
echo "#BSUB -a openmpi" >> $job
35+
echo "#BSUB -n ${NUMBER_OF_REQUESTED_CORES}" >> $job
36+
echo "#BSUB -R span[ptile=${MAX_NUMBER_OF_CORE_PER_NODE}]" >> $job
37+
echo "/usr/share/lsf/9.1/linux2.6-glibc2.3-x86_64/bin/mpirun.lsf env PSM_SHAREDCONTEXTS_MAX=8 ${PATH_TO_EXECUTABLE} >> ${stdout_file} 2>> ${stderr_file}" >> $job
38+
39+
40+
echo "Submit your job to the queue system with this command: "
41+
echo "bsub < $job"
42+
43+

0 commit comments

Comments
 (0)