|
|
|
# Input file and repeated tags
|
|
|
|
If in the `input` file, the same tag appears more than once, the code will apply the value that appears as last. For example:
|
|
|
|
If the same tag appears more than once in the input file, the code will apply the last value. For example:
|
|
|
|
``` bash
|
|
|
|
temperature 0.01 # requested temperature in units of eF, default T=0
|
|
|
|
energyconveps 1.0e-6 # energy convergence epsilon
|
| ... | ... | @@ -15,8 +15,8 @@ temperature 0.03 # ... AND AGAIN TEMPERATURE ... THIS ONE WILL |
|
|
|
```
|
|
|
|
Here, the `temperature` is provided three times, and finally, the value `0.03` will be used in the calculation.
|
|
|
|
|
|
|
|
# Executing campaign of calculations
|
|
|
|
A common situation is when we want to execute a series of calculations for various input parameters. For example, let us consider the case where we want to repeat the same calculations for temperatures 0.01, 0.02, 0.03. We can do it within the single script as follows:
|
|
|
|
# Executing a campaign of calculations
|
|
|
|
A common situation is when we want to execute a series of calculations for various input parameters. For example, let us consider the case where we want to repeat the same calculations for temperatures 0.01, 0.02, and 0.03. We can do it within a single script as follows:
|
|
|
|
```bash
|
|
|
|
# input.txt contains common settings for all runs
|
|
|
|
|
| ... | ... | @@ -28,7 +28,7 @@ mpirun -np 20 ./st-wslda-2d input.txt |
|
|
|
# T=0.02
|
|
|
|
echo "temperature 0.02" >> input.txt
|
|
|
|
echo "outprefix T0.02" >> input.txt
|
|
|
|
# I can use previous result as a starting point
|
|
|
|
# I can use the previous result as a starting point
|
|
|
|
echo "inprefix T0.01" >> input.txt
|
|
|
|
echo "inittype 5" >> input.txt
|
|
|
|
mpirun -np 20 ./st-wslda-2d input.txt
|
| ... | ... | @@ -36,7 +36,7 @@ mpirun -np 20 ./st-wslda-2d input.txt |
|
|
|
# T=0.03
|
|
|
|
echo "temperature 0.03" >> input.txt
|
|
|
|
echo "outprefix T0.03" >> input.txt
|
|
|
|
# I can use previous result as a starting point
|
|
|
|
# I can use the previous result as a starting point
|
|
|
|
echo "inprefix T0.02" >> input.txt
|
|
|
|
echo "inittype 5" >> input.txt
|
|
|
|
mpirun -np 20 ./st-wslda-2d input.txt
|
| ... | ... | |