Welcome, Guest
Username: Password: Remember me

TOPIC: use of formatted results file

use of formatted results file 10 years 8 months ago #12352

  • Proust_Nicolas
  • Proust_Nicolas's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 136
  • Thank you received: 2
Hi,

I am using a formatted results file to print out some information about my simulation. When I use the parallel mode I have one file for each processor. Is it possible to gather automatically at the end of the simulation all this file in only one?

Regards
Nicolas
The administrator has disabled public write access.

use of formatted results file 10 years 8 months ago #12353

  • jmhervouet
  • jmhervouet's Avatar
Hello,

This formatted data file is set with a PARAL mode so that every processor has its own file. There are only a few types of files which are gathered by the system, like SELAFIN, CONLIM, SECTIONS, ETC. As we do not know what you write, it is impossible to gather it.

If you change the type of the file (in the dictionary) to SCAL, only the file of processor 0 will be considered.

If the information you write is global (i.e. not depending on the local processor), you can consider setting the file to SCAL and allowing only the processor 0 to write, with a test:

IF(IPID.EQ.0) THEN
ENDIF

You will have probably to share information between processors, using e.g. function P_DSUM (see programming guide), note that all the processors must call such functions, so they must be called outside the IF(IPID.EQ.0)...

With best regards,

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

use of formatted results file 10 years 7 months ago #12488

  • Proust_Nicolas
  • Proust_Nicolas's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 136
  • Thank you received: 2
I have successfully used the test :
IF(IPID.EQ.0) THEN
ENDIF
That's practical for information available from all processors to only write in one file

When the information comes from only one processors, I have finally stayed it on the processor of origin.

Regards
Nicolas
The administrator has disabled public write access.
Moderators: pham

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