Welcome, Guest
Username: Password: Remember me

TOPIC: Problem with a new subroutine in parallel mode

Problem with a new subroutine in parallel mode 8 years 8 months ago #20512

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

I am writing a new subroutine to compute runoff from a defined rainfall.
This subroutine is called from prosou.f where the rain/evaporation implementation is.
The subroutine works in scalar. In parallel the subroutine is being compiled without error but the run is not starting (hanging after the ...\out_fortran.exe command).

My code is simple, with no argument and only

USE DECLARATIONS_TELEMAC2D, ONLY: PLUIE,DT,NPOIN,LT,AT,HN

plus some local variables. I even made a test with an empty subroutine called in parallel, and I have the same problem.

Is there something special to be done when creating subroutines for having them working in parallel?

I am on Win7 with gfortran and MPI. Using version 7.1.0.

Any help is greatly appreciated!

Best regards
PL
The administrator has disabled public write access.

Problem with a new subroutine in parallel mode 8 years 8 months ago #20520

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

Problem fixed. I mean, there was no problem, I had some trouble connecting to my company's network yesterday and I noticed that MPI can be affected in such a case.

So, after a good night sleep everything is working fine :-)

Best regards
PL
The administrator has disabled public write access.

Problem with a new subroutine in parallel mode 8 years 8 months ago #20521

  • jmhervouet
  • jmhervouet's Avatar
Hello,

No, there is nothing special to do if the subroutine is in the FORTRAN FILE. The only possible reason would be that a parallel communication in this subroutine (like calling function P_DSUM or subroutine PARCOM) is not done by all processors, which would cause some processors to indefinitely wait for the others. For the same reason it would be necessary that the subroutine is called by all processors. These are the only reasons I can figure out.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.
Moderators: pham

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