What's really going to bake your noodle later on is, would you still have broken it if I hadn’t said anything?
Main /
SimpleScriptExample#!/bin/bash # check that we have the correct number of parameters if [ $# -ne 2 ] ; then echo "error: expected 2 parameters <L> <Sz>" exit 1 fi L=$1 Sz=$2 # Some other parameters we will not need to vary often states=20 sweeps=10 # construct the lattice # filename of the lattice LatticeFile="lattice-$L" # does the lattice exist already? if [ -f $LatticeFile ] ; then echo "Lattice file already exists" else echo "Constructing lattice file $LatticeFile ..." spinchain-u1 -L $L -o $LatticeFile fi # construct an initial state WaveFile="psi-$L-$Sz" echo "Constructing initial state $WaveFile ..." mp-random -l $LatticeFile -q $Sz -o $WaveFile # run the dmrg program mp-dmrg -H $LatticeFile:"H" -w $WaveFile -m $states -s $sweeps |