[FLASH-USERS] Use of Driver_getNumProcs.F90

Lewis,Sean scl63 at drexel.edu
Mon Sep 26 12:24:35 EDT 2022


Hi all,

In my application, I am attempting to gather all block cell data post-refinement on particle distribution so that I can then manually set cell field values. To accomplish this, I cycle over each processor and call Grid_getLocalNumBlks(). To know how many processors to cycle over, I first call Driver_getNumProcs(MESH_COMM, n), where MESH_ COMM is the Flash defined value and n is the output variable: total number of processors. In my application, Driver_getNumProcs() always returns “1” no matter how many processors I use. The same is true if I pass the GLOBAL_COMM variable. Is there a hidden functionality here that I am missing? Does Driver_getNumProcs() return 1 intentionally? Is there another way for FLASH to internally report the number of processors being used?

Thank you for any insight you can provide,
-Sean

Sean C. Lewis
Doctoral Candidate
Department of Physics
Drexel University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20220926/02a76f4f/attachment.htm>


More information about the flash-users mailing list