ViewVC logotype

Revision 921

Jump to revision: Previous Next
Author: gross
Date: Fri Jan 5 00:54:37 2007 UTC (10 years, 11 months ago)
Changed paths: 8
Log Message:
I have done some clarification on functions that allow to access individual data point values in a Data object. 
The term "data point number" is always local on a MPI process and referes to the value (data_point_in_sample, sample)
as a single identifyer (data_point_in_sample + sample * number_data_points_per_sample). a "global data point number"
referes to a tuple of a processour id and local data point number.

The function convertToNumArrayFromSampleNo has been removed now and convertToNumArrayFromDPNo renamed to getValueOfDataPoint.
There are two new functions:


This allows you to do things like:

   for i in xrange(in.getNumberOfDataPoints())
       out_loc=< some operations on in_loc>

Also mindp  is renamed to  minGlobalDataPoint and there is a new function getValueOfGlobalDataPoint. While in MPI the functions getNumberOfDataPoints and getValueOfDataPoint are working locally on each process (so the code above is executed in parallel).
the latter allows getting a single value across all processors. 

Changed paths

Path Details
Directorytrunk/escript/py_src/pdetools.py modified , text changed
Directorytrunk/escript/src/Data.cpp modified , text changed
Directorytrunk/escript/src/Data.h modified , text changed
Directorytrunk/escript/src/DataAbstract.cpp modified , text changed
Directorytrunk/escript/src/DataAbstract.h modified , text changed
Directorytrunk/escript/src/DataExpanded.cpp modified , text changed
Directorytrunk/escript/src/DataExpanded.h modified , text changed
Directorytrunk/escript/src/escriptcpp.cpp modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.26