Skip to content
Snippets Groups Projects

Master

Merged Luigui Miranda requested to merge master into main
105 files
+ 8880
72
Compare changes
  • Side-by-side
  • Inline
Files
105
+ 34
0
 
#!/bin/bash
 
 
declare -a valores=(0 5 10 15 20 25 30 35 40 45)
 
 
for i in "${!valores[@]}"
 
do
 
h="${valores[$i]}"
 
 
#echo "$i"
 
 
mkdir humedadc7-1kev-$h
 
cd humedadc7-1kev-$h
 
 
cmake -DGeant4_DIR6=/opt/geant4/lib/Geant4-10.3.3/ ../"direccion del directorio"/Simulacion_neutrones_monoenergeticos; make -j2
 
./wcd -m input.in
 
cd
 
 
#sleep 30
 
 
cd humedad6/codigo/src
 
 
Archivo="PrimaryGeneratorAction.cc"
 
 
#echo "$i"
 
#"El índice es $i y el valor es $h"
 
# para realizar las modificaciones necesarias
 
echo "e" | vim -c "44 + $i" -c "normal i//" -c "45 + $i" -c "normal 2|xxx" -c "wq" "$Archivo"
 
#echo "$i"
 
cd
 
 
 
done
 
 
echo "terminado"
Loading