/[escript]/trunk/escript/py_src/pdetools.py
ViewVC logotype

Log of /trunk/escript/py_src/pdetools.py

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 1107 - (view) (annotate) - [select for diffs]
Modified Thu Apr 19 02:14:18 2007 UTC (12 years, 5 months ago) by gross
File length: 21552 byte(s)
Diff to previous 1106
Small bug in ReadMeh call fixed.
Test for typ of verbose argument in pdetools.SaddlePointSolver added.



Revision 1106 - (view) (annotate) - [select for diffs]
Modified Thu Apr 19 01:54:57 2007 UTC (12 years, 5 months ago) by gross
File length: 21480 byte(s)
Diff to previous 1105
I take it all back! Ignore the last check in.



Revision 1105 - (view) (annotate) - [select for diffs]
Modified Thu Apr 19 01:10:49 2007 UTC (12 years, 5 months ago) by gross
File length: 21543 byte(s)
Diff to previous 990
The modification fixes a problem with the garbage collection in python. 
The problem seems that a default value of a method argument is seen as
being dependend on the the instance of the class. This produces a
circular dependence and can stop the garbage collection to delete the
object. The situation becomes in particulary bad if the class provides a
__del__ method as it is not clear where to break the circle.

We need to revisit all python classes in escript & Co to remove this
possible problem. 



Revision 990 - (view) (annotate) - [select for diffs]
Modified Wed Feb 21 04:27:52 2007 UTC (12 years, 7 months ago) by ksteube
File length: 21480 byte(s)
Diff to previous 921
Cleaned up the python in-line doc to make epydoc work better

Configured for shake71 to find NetCDF libraries


Revision 921 - (view) (annotate) - [select for diffs]
Modified Fri Jan 5 00:54:37 2007 UTC (12 years, 8 months ago) by gross
File length: 21477 byte(s)
Diff to previous 893
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:

   getNumberOfDataPoints
   setValueOfDataPoint

This allows you to do things like:

  in=Data(..)
  out=Data(..)
   for i in xrange(in.getNumberOfDataPoints())
       in_loc=in.getValueOfDataPoint(i)
       out_loc=< some operations on in_loc>
       out.setValueOfDataPoint(i,out_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. 



Revision 893 - (view) (annotate) - [select for diffs]
Modified Wed Nov 8 08:20:19 2006 UTC (12 years, 10 months ago) by gross
File length: 21451 byte(s)
Diff to previous 880
small bug fixed

Revision 880 - (view) (annotate) - [select for diffs]
Modified Wed Oct 25 23:58:16 2006 UTC (12 years, 11 months ago) by gross
File length: 21476 byte(s)
Diff to previous 877
Locator accepts list of locations now

Revision 877 - (view) (annotate) - [select for diffs]
Modified Wed Oct 25 03:06:58 2006 UTC (12 years, 11 months ago) by gross
File length: 20538 byte(s)
Diff to previous 873
backtraking in the saddlepoint problem (not perfect yet)

Revision 873 - (view) (annotate) - [select for diffs]
Modified Mon Oct 16 04:07:33 2006 UTC (12 years, 11 months ago) by gross
File length: 14802 byte(s)
Diff to previous 867
uszawa scheme runs with variable viscosity

Revision 867 - (view) (annotate) - [select for diffs]
Modified Mon Oct 9 06:50:09 2006 UTC (12 years, 11 months ago) by gross
File length: 13919 byte(s)
Diff to previous 790
a class to solving sattle point problems using uszawa scheme (not functional yet)

Revision 790 - (view) (annotate) - [select for diffs]
Modified Wed Jul 26 23:12:34 2006 UTC (13 years, 2 months ago) by bcumming
File length: 11391 byte(s)
Diff to previous 782
changes to escript/py_src/pdetools.py and /escript/src/Data.h/.cpp to
make the Locator work in MPI. escript::Data::mindp now returns a 3 tuple,
with the MPI rank of the process on which the minimum value occurs
included. escript::Data::convertToNumArrayFromDPNo also takes the ProcNo
to perform the MPI reduction.

This had to be implemented in both the MPI and non-MPI versions to allow
the necesary changes to the Python code in pdetools.py. In the non-MPI
version ProcNo is set to 0. This works for the explicit scripts tested
thus far, however if it causes problems in your scripts contact Ben or
Lutz, or revert the three files (pdetools.py, Data.h and Data.cpp) to
the previous version.  



Revision 782 - (view) (annotate) - [select for diffs]
Modified Tue Jul 18 00:47:47 2006 UTC (13 years, 2 months ago) by bcumming
File length: 11391 byte(s)
Diff to previous 720
Large number of changes to Finley for meshing in MPI.

- optimisation and neatening up of rectcanglular mesh generation code
- first and second order 1D, 2D and 3D rectangular meshes are now
  available in finley and escript using MPI.
- reduced meshes now generated in MPI, and interpolation to and from 
  reduced data types now supported.  


Revision 720 - (view) (annotate) - [select for diffs]
Modified Thu Apr 27 10:16:05 2006 UTC (13 years, 4 months ago) by gross
File length: 11158 byte(s)
Diff to previous 637
formatting errors in epydoc tags fixed

Revision 637 - (view) (annotate) - [select for diffs]
Modified Thu Mar 23 10:55:31 2006 UTC (13 years, 6 months ago) by gross
File length: 11061 byte(s)
Diff to previous 614
more copyright statements added

Revision 614 - (view) (annotate) - [select for diffs]
Modified Wed Mar 22 01:37:07 2006 UTC (13 years, 6 months ago) by elspeth
File length: 10726 byte(s)
Diff to previous 609
Corrected spelling of 'license' in url so that the link actually points to the license.


Revision 609 - (view) (annotate) - [select for diffs]
Modified Tue Mar 21 09:46:39 2006 UTC (13 years, 6 months ago) by elspeth
File length: 10726 byte(s)
Diff to previous 525
Updated copyright and licence notices.


Revision 525 - (view) (annotate) - [select for diffs]
Modified Tue Feb 14 06:56:13 2006 UTC (13 years, 7 months ago) by gross
File length: 10437 byte(s)
Diff to previous 409
rob's strange NoPDE class added

Revision 409 - (view) (annotate) - [select for diffs]
Modified Fri Dec 23 01:13:41 2005 UTC (13 years, 9 months ago) by gross
File length: 6695 byte(s)
Diff to previous 396
bug fixed

Revision 396 - (view) (annotate) - [select for diffs]
Modified Wed Dec 21 05:08:25 2005 UTC (13 years, 9 months ago) by gross
File length: 6618 byte(s)
Diff to previous 351
tests for clip, maximum, minimum added

Revision 351 - (view) (annotate) - [select for diffs]
Modified Tue Dec 13 09:12:15 2005 UTC (13 years, 9 months ago) by gross
File length: 6566 byte(s)
Diff to previous 155
time integration manger added

Revision 155 - (view) (annotate) - [select for diffs]
Modified Wed Nov 9 02:02:19 2005 UTC (13 years, 10 months ago) by jgs
File length: 4601 byte(s)
Diff to previous 149
move all directories from trunk/esys2 into trunk and remove esys2


Revision 149 - (view) (annotate) - [select for diffs]
Modified Thu Sep 1 03:31:39 2005 UTC (14 years ago) by jgs
Original Path: trunk/esys2/escript/py_src/pdetools.py
File length: 4601 byte(s)
Diff to previous 148
Merge of development branch dev-02 back to main trunk on 2005-09-01


Revision 148 - (view) (annotate) - [select for diffs]
Modified Tue Aug 23 01:24:31 2005 UTC (14 years, 1 month ago) by jgs
Original Path: trunk/esys2/escript/py_src/pdetools.py
File length: 4442 byte(s)
Diff to previous 147
Merge of development branch dev-02 back to main trunk on 2005-08-23


Revision 147 - (view) (annotate) - [select for diffs]
Modified Fri Aug 12 01:45:47 2005 UTC (14 years, 1 month ago) by jgs
Original Path: trunk/esys2/escript/py_src/pdetools.py
File length: 4409 byte(s)
Diff to previous 146
erge of development branch dev-02 back to main trunk on 2005-08-12


Revision 146 - (view) (annotate) - [select for diffs]
Modified Fri Jul 29 01:44:29 2005 UTC (14 years, 1 month ago) by jgs
Original Path: trunk/esys2/escript/py_src/pdetools.py
File length: 5249 byte(s)
Diff to previous 121
First merge of development branch dev-02 back to main trunk on 2005-07-29


Revision 121 - (view) (annotate) - [select for diffs]
Added Fri May 6 04:26:16 2005 UTC (14 years, 4 months ago) by jgs
Original Path: trunk/esys2/escript/py_src/pdetools.py
File length: 5259 byte(s)
Merge of development branch back to main trunk on 2005-05-06


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.26