Welcome, Guest
Username: Password: Remember me

TOPIC: Local Processor Number

Local Processor Number 6 years 1 week ago #31971

  • krey
  • krey's Avatar
Greetings,

Does anyone know how to access the local processor number from the Fortran routines when running in parallel (I'm trying to access it from prosou.f). The NCSIZE variable for example has the total number of processors used. I'm looking for the local processor number, such that each process being run in parallel would have a different number.
The administrator has disabled public write access.

Local Processor Number 6 years 1 week ago #31972

  • krey
  • krey's Avatar
Nevermind, I found it. The variable is IPID, which starts at 0. So if for example I run a simulation with 8 processors, the IPID numbers are 0 through 7 inclusive, with each parallel routine having it's own IPID number.

I found it by scanning the sources, oilspill.f utilizes IPID to write a unique data file from each process.
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.