CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

SU2 execution using qsub

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2020, 05:25
Default SU2 execution using qsub
  #1
New Member
 
Ranjan
Join Date: Apr 2014
Posts: 27
Rep Power: 9
Ranjan is on a distinguished road
Hello

I am trying to compile and run SU2 V. 7.0.2 on a cluster that uses qsub to submit jobs. While I was able to compile and run SU2 on the head node, Jon submission using qsub keeps failing. I am currently in the process of working this out with the cluster admin but I wanted to make sure that the qsub file is indeed correct :

#!/bin/bash
#PBS -l walltime=00:05:00
#PBS -l nodes=1pn=16
#PBS -N openmpi_job
#PBS -q secondary
#PBS -j oe
###PBS -o openmpijob.out
###PBS -e openmpijob.err
###PBS -m be
#
#####################################

# Load MPI module (Enable MPI in user environment)
module load openmpi/3.1.1-intel-18.0
module load vim/8.1
module load boost/1.71.0
module load git/2.19.0
module load python/3
module load anaconda/2019-Oct/3
module unload python/2
module load /projects/eng/shared/kaijames/modulefiles/swig/2.0.10
module load gcc
# Change to the directory from which the batch job was submitted
export PBS_JOBDIR=/projects/eng/shared/kaijames/SU2/test/Turbulent_2D_Constrained_RAE2822/
# Run the MPI code
shape_optimization.py -n 16 -g DISCRETE_ADJOINT -o SLSQP -f turb_SA_RAE2822.cfg > log.solver &

I understand that I need to make changes to shape_optimization.py to make it compatible with qsub but I am not sure how to do so.

Any help is highly appreciated.

Thank you
Ranjan is offline   Reply With Quote

Old   September 14, 2020, 04:48
Default
  #2
Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 42
Rep Power: 11
bigfootedrockmidget is on a distinguished road
what does 'failing' mean? Can you share the output from the log files?
Does a primal computation using mpirun work?
bigfootedrockmidget is offline   Reply With Quote

Old   September 17, 2020, 04:26
Default Executing shape_optimization.py using qsub
  #3
New Member
 
Ranjan
Join Date: Apr 2014
Posts: 27
Rep Power: 9
Ranjan is on a distinguished road
Hello

Thank you for your reply. So it seems like my there was an error in my .pbs file which would result in an exception after submission.

I am able to run direct flow simulations using qsub using mpiexec SU2_CFD <case.cfg>. However, I am not sure how to use the python wrapper for shape optimization problems.

To be exact, I am not sure how to execute shape_optiization.py -n -$j ... in the .pbs file when the number of cores are specified earlier in the file.

My qsub file is attached herewith. Any help will be greatly appreciated!

Thank you in advance.
Attached Files
File Type: txt openmpi.txt (786 Bytes, 5 views)
Ranjan is offline   Reply With Quote

Reply

Tags
su2 ad openmpi gcc, su2 installation error, su2 parallel, su2 qsub

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Introducing SU2 International Developers Society (IDS) fpalacios SU2 News & Announcements 1 June 17, 2019 22:38
Parallel execution of SU2 marco.fossati SU2 9 August 25, 2016 17:56
Official release of SU2 V3.0 and SU2 Educational V1.0 fpalacios SU2 News & Announcements 2 January 22, 2014 05:28
SU2 2.0.6 test case execution errors austin.m SU2 Installation 4 October 4, 2013 09:30
Welcome to the Stanford University Unstructured (SU2) forum! economon SU2 0 January 7, 2013 02:48


All times are GMT -4. The time now is 05:18.