#PBS -S /bin/bash #PBS -N crm_wing_opt_om_curv #PBS -l select=1:ncpus=128:mpiprocs=1:model=rom_ait #PBS -l walltime=02:00:00 #PBS -j oe #PBS -W group_list= #PBS -q normal #BENCH reference crm_wing_opt_om_curv.data.iter #BENCH tolerance_abs 1.0e-5 #BENCH tolerance_rel 1.0e-5 #BENCH compare last_step #BENCH exclude_vars linitsflow, linitstur, linresflow, linrestur, dqnorm, dqnorm, dmass, dqvelocityx, dqvelocityy, dqvelocityz, dqtemperature #BENCH save_vars cl, cd log_file="run.log" cd $PBS_O_WORKDIR # Modules and Environments module purge # Load the module for LAVA module use /swbuild/LAVA/LAVA_modules module load LAVA # Source the virtual environment which contains all # the necessary python packages for optimization. # The user is responsible for creating this virtual env source path/to/virtual_env/bin/activate # This is to be safe (communication bug with the infiniband) export MPI_NUM_MEMORY_REGIONS=0 # Run optimization script mpiexec -np 1 mbind.x -t 128 python run_om_opt.py 2>&1 |& tee -a ${log_file}