#PBS -S /bin/bash #PBS -N crm_wing_opt_curv #PBS -l select=1:ncpus=128:mpiprocs=4:model=rom_ait #PBS -l walltime=02:00:00 #PBS -j oe #PBS -W group_list= #PBS -q normal #BENCH reference crm_wing_opt_curv.data.iter #BENCH tolerance_abs 5.0e-5 #BENCH tolerance_rel 5.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 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 log_file="run.log" mpiexec -np 4 mbind.x -t 32 python run_opt.py 2>&1 |& tee -a ${log_file}