CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens

Using DGSUM in POSDAT.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2007, 09:02
Default Using DGSUM in POSDAT.
  #1
Correia
Guest
 
Posts: n/a
Does someone has an example on how to use the function DGSUM in a parallel run?

I'm try to compute the average temperature from several fluid regions defined among a channel. Each region is build with up to 10 cells. I save the IP number (Pro-STAR cell number) and region number saved in two arrays in a common block in the form: myRegion IP 100 1034 100 1054 100 1029 200 3020 200 3063 ... In POSDAT I create a DO loop to read the cell temperature "T(IP)" and volume "VOL(IP)". For each sensor the Temperature average will be computed. In a single Processor It works very fine. But with two processors the results doesn't make sense. To understand I create an array to save the total volume on each sensor and for a parallel run I add in my code the DGSUM function.

DO i=1,NoOfRegions IF(NHPC.GT.1)THEN ! for parallel run

TotalVol(i)=DGSUM(TotalVol(i)) ENDIF ENDDO

But the results from the last regions (computed in the second Host) are added to the first regions(computed in the first Host). I guess problem by the cell number. But I realy don't know. I can send the Model with user functions if someone want to take a look.

Thank you in advance.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error in posdat.f tipakorn Siemens 4 August 24, 2007 08:42
CFL in posdat hamodi Siemens 2 August 6, 2007 03:27
POSDAT Sheila Siemens 2 February 8, 2006 12:08
posdat in HPC Won-Geun Lee Siemens 0 May 23, 2001 21:03
Posdat Maria Carlsson Siemens 1 April 30, 2001 11:29


All times are GMT -4. The time now is 07:21.