User Tools

Site Tools


howto:wrf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howto:wrf [2020/05/21 13:47]
ccrosby
howto:wrf [2020/05/21 13:58] (current)
ccrosby [WRF, Parallel NetCDF and I/O Quilting]
Line 96: Line 96:
 # Run wrf.exe with the full number of processes # Run wrf.exe with the full number of processes
 exe=$WRFDIR/​WRF/​run/​wrf.exe exe=$WRFDIR/​WRF/​run/​wrf.exe
-mpirun -np $nproc ​-machinefile $PBS_NODEFILE ​$exe &> wrf.out+mpirun -np $nproc $exe &> wrf.out
 </​file>​ </​file>​
  
Line 131: Line 131:
 ## For this example, assume that nproc_x=8, nproc_y=28, nio_tasks_per_group=4 and nio_groups=4,​ for a total ## For this example, assume that nproc_x=8, nproc_y=28, nio_tasks_per_group=4 and nio_groups=4,​ for a total
 ## of 16 I/O processes and 228 solver processes, therefore 240 MPI processes in total. ## of 16 I/O processes and 228 solver processes, therefore 240 MPI processes in total.
-mpirun -np 240 -machinefile $PBS_NODEFILE ​$exe &> wrf.out+mpirun -np 240  $exe &> wrf.out
 </​file>​ </​file>​
  
Line 160: Line 160:
 ### Issue the command line, passing the number of OpenMP threads. ### Issue the command line, passing the number of OpenMP threads.
 ### These affinity settings work OK, but may be unnecessary. YMMV. ### These affinity settings work OK, but may be unnecessary. YMMV.
-time mpirun ​-machinefile $PBS_NODEFILE ​-np $nproc -genv OMP_NUM_THREADS 4 -genv KMP_AFFINITY "​verbose,​granularity=core,​compact,​0,​1"​ -bind-to socket -map-by socket wrf.exe > runWRF.out+time mpirun -np $nproc -genv OMP_NUM_THREADS 4 -genv KMP_AFFINITY "​verbose,​granularity=core,​compact,​0,​1"​ -bind-to socket -map-by socket wrf.exe > runWRF.out
 </​file>​ </​file>​
  
/var/www/wiki/data/pages/howto/wrf.txt · Last modified: 2020/05/21 13:58 by ccrosby