/[escript]/branches/DataC_2092/escript/src/DataAbstract.h
ViewVC logotype

Log of /branches/DataC_2092/escript/src/DataAbstract.h

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 2103 - (view) (annotate) - [select for diffs]
Modified Thu Nov 27 01:00:34 2008 UTC (14 years, 3 months ago) by jfenwick
File length: 14621 byte(s)
Diff to previous 2099
Branch commit.
Added a note about mismatched allocs and decallocs.
Added Data::actsExpanded and friends.
Modified DataC::isExpanded to call it instead of Data::isExpanded.

Revision 2099 - (view) (annotate) - [select for diffs]
Modified Wed Nov 26 05:46:01 2008 UTC (14 years, 4 months ago) by jfenwick
File length: 14362 byte(s)
Diff to previous 2093
Branch commit.
Modifed getSampleData to take a buffer.
Added calls to allocate and free buffers.
Passes unit tests on badger but have not tried on savanna yet.


Revision 2093 - (view) (annotate) - [select for diffs]
Modified Tue Nov 25 04:20:56 2008 UTC (14 years, 4 months ago) by jfenwick
File length: 14151 byte(s)
Diff to previous 2005
Branching to experiment with changes to the DataC interface.
The goal is to separate read and write access to pointers.


Revision 2005 - (view) (annotate) - [select for diffs]
Modified Mon Nov 10 01:21:39 2008 UTC (14 years, 4 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 14151 byte(s)
Diff to previous 1981
Bringing all changes across from schroedinger.
(Note this does not mean development is done, just that it will happen
on the trunk for now).
If anyone notices any problems please contact me.



Revision 1981 - (view) (annotate) - [select for diffs]
Modified Thu Nov 6 05:27:33 2008 UTC (14 years, 4 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 13251 byte(s)
Diff to previous 1952
More warning removal.


Revision 1952 - (view) (annotate) - [select for diffs]
Modified Thu Oct 30 06:16:00 2008 UTC (14 years, 4 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 13224 byte(s)
Diff to previous 1897
Fixed /* in a comment.
The rank of a datapoint is now an unsigned int.


Revision 1897 - (view) (annotate) - [select for diffs]
Modified Mon Oct 20 00:32:30 2008 UTC (14 years, 5 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 13197 byte(s)
Diff to previous 1872
Modified Data::toString() so it doesn't throw on DataEmpty.
Added setEscriptParamInt and getEscriptParamInt as free functions.
At the moment all they do is allow you to set the param TOO_MANY_LINES.
This is used to determine when printing a Data object will show you the 
points and when it will print a summary.

I've set the default value back to 80 lines.
If you need to see more lines use (in python):

setEscriptParamInt("TOO_MANY_LINES",80000)



Revision 1872 - (view) (annotate) - [select for diffs]
Modified Mon Oct 13 00:18:55 2008 UTC (14 years, 5 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 13177 byte(s)
Diff to previous 1811
Closing the moreshared branch


Revision 1811 - (view) (annotate) - [select for diffs]
Modified Thu Sep 25 23:11:13 2008 UTC (14 years, 6 months ago) by ksteube
Original Path: trunk/escript/src/DataAbstract.h
File length: 13092 byte(s)
Diff to previous 1803
Copyright updated in all files


Revision 1803 - (view) (annotate) - [select for diffs]
Modified Wed Sep 24 06:20:29 2008 UTC (14 years, 6 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 13126 byte(s)
Diff to previous 1802
All about making DataEmpty instances throw.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Exposed getDim from AbstractDomain to python to fix bug.

Added isEmpty member to DataAbstract to allow it to throw is queries are 
made about a DataEmpty instance.


Added exceptions to DataAbstract, DataEmpty and Data to prevent calls 
being made against DataEmpty objects.
The following still work as expected on DataEmpty instances

copy, getDomain, getFunctionSpace, isEmpty, isExpanded, isProtected, 
isTagged, setprotection.

You can also call interpolate, however it should throw if you try to 
change FunctionSpaces.



Revision 1802 - (view) (annotate) - [select for diffs]
Modified Tue Sep 23 01:03:29 2008 UTC (14 years, 6 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 13773 byte(s)
Diff to previous 1799
Added canTag methods to FunctionSpace and AbstractDomain (and its 
offspring).
This checks to see if the domain supports tags for the given type of 
function space.

Constructors for DataTagged now throw exceptions if you attempt to make 
a DataTagged with a FunctionSpace which does not support tags.
To allow the default constructor to work, NullDomain has a single 
functioncode which "supports" tagging.

Fixed a bug in DataTagged::toString and DataTypes::pointToString.

Added FunctionSpace::getListOfTagsSTL.

algorithm(DataTagged, BinaryFunction) in DataAlgorithm now only 
processes tags known to be in use.
This fixes mantis issue #0000186.

Added comment to Data.h intro warning about holding references if the 
underlying DataAbstract changes.

_python_ unit tests have been updated to test TaggedData with invalid 
FunctionSpaces and to give the correct answers to Lsup etc.



Revision 1799 - (view) (annotate) - [select for diffs]
Modified Wed Sep 17 06:33:18 2008 UTC (14 years, 6 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 14204 byte(s)
Diff to previous 1796
Added Data::copySelf() [Note: this is exposed as copy() in python].
This method returns a pointer to a deep copy of the target.
There are c++ tests but no python tests for this yet.

All DataAbstracts now have a deepCopy() which simplifies the 
implementation of the compy methods.



Revision 1796 - (view) (annotate) - [select for diffs]
Modified Wed Sep 17 01:45:46 2008 UTC (14 years, 6 months ago) by jfenwick
Original Path: trunk/escript/src/DataAbstract.h
File length: 14078 byte(s)
Diff to previous 1487
Merged noarrayview branch onto trunk.



Revision 1487 - (view) (annotate) - [select for diffs]
Modified Thu Apr 10 05:28:01 2008 UTC (14 years, 11 months ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 12117 byte(s)
Diff to previous 1388
reordering when reading Netcfd files added.

Revision 1388 - (view) (annotate) - [select for diffs]
Modified Fri Jan 11 07:45:58 2008 UTC (15 years, 2 months ago) by trankine
Original Path: trunk/escript/src/DataAbstract.h
File length: 11846 byte(s)
Diff to previous 1387
And get the *(&(*&(* name right

Revision 1387 - (view) (annotate) - [select for diffs]
Modified Fri Jan 11 07:45:26 2008 UTC (15 years, 2 months ago) by trankine
Original Path: temp/escript/src/DataAbstract.h
File length: 11846 byte(s)
Diff to previous 1384
Restore the trunk that existed before the windows changes were committed to the (now moved to branches) old trunk.

Revision 1384 - (view) (annotate) - [select for diffs]
Modified Fri Jan 11 02:29:38 2008 UTC (15 years, 2 months ago) by phornby
Original Path: temp_trunk_copy/escript/src/DataAbstract.h
File length: 11846 byte(s)
Diff to previous 1358
Make a temp copy of the trunk before checking in the windows changes



Revision 1358 - (view) (annotate) - [select for diffs]
Modified Wed Dec 5 03:41:06 2007 UTC (15 years, 3 months ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 11846 byte(s)
Diff to previous 1325
setTaggedValue works now for expanded data.

Revision 1325 - (view) (annotate) - [select for diffs]
Modified Mon Oct 1 06:28:24 2007 UTC (15 years, 5 months ago) by matt
Original Path: trunk/escript/src/DataAbstract.h
File length: 11847 byte(s)
Diff to previous 1312
DataArray has been removed as it is no longer used. Unit tests have been
updated accordingly with substitute constructs. Any files pertaining to
DataArray have been removed.



Revision 1312 - (view) (annotate) - [select for diffs]
Modified Mon Sep 24 06:18:44 2007 UTC (15 years, 6 months ago) by ksteube
Original Path: trunk/escript/src/DataAbstract.h
File length: 12007 byte(s)
Diff to previous 1118
The MPI branch is hereby closed. All future work should be in trunk.

Previously in revision 1295 I merged the latest changes to trunk into trunk-mpi-branch.
In this revision I copied all files from trunk-mpi-branch over the corresponding
trunk files. I did not use 'svn merge', it was a copy.


Revision 1118 - (view) (annotate) - [select for diffs]
Modified Tue Apr 24 08:55:04 2007 UTC (15 years, 11 months ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 12142 byte(s)
Diff to previous 964
problem with reset of faulty PDE rhs fixed.

Revision 964 - (view) (annotate) - [select for diffs]
Modified Tue Feb 13 05:10:26 2007 UTC (16 years, 1 month ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 12044 byte(s)
Diff to previous 950
The set/getRefVal functions of Data objects have been removed (mainly to avoid later problems with MPI).
Moreover, a faster access to the reference id of samples has been introduced. I don't think that anybody will
profit form this at this stage but it will allow a faster dump of data objects.



Revision 950 - (view) (annotate) - [select for diffs]
Modified Tue Feb 6 07:01:11 2007 UTC (16 years, 1 month ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 13089 byte(s)
Diff to previous 922
escript data objects can now be saved to netCDF files, see http://www.unidata.ucar.edu/software/netcdf/.
Currently only constant data are implemented with expanded and tagged data to follow.
There are two new functions to dump a data object

   s=Data(...)
   s.dump(<filename>)

and to recover it

   s=load(<filename>, domain)

Notice that the function space of s is recovered but domain is still need. 

dump and load will replace archive and extract.

The installation needs now the netCDF installed. 



Revision 922 - (view) (annotate) - [select for diffs]
Modified Fri Jan 5 04:23:05 2007 UTC (16 years, 2 months ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 12892 byte(s)
Diff to previous 921
setValueOfDataPoint accepts double value as argument now

Revision 921 - (view) (annotate) - [select for diffs]
Modified Fri Jan 5 00:54:37 2007 UTC (16 years, 2 months ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 12397 byte(s)
Diff to previous 854
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 854 - (view) (annotate) - [select for diffs]
Modified Thu Sep 21 05:29:42 2006 UTC (16 years, 6 months ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 11867 byte(s)
Diff to previous 804
Some modifications to the binary operations +,-,*/, pow. 
The code is a bit simpler now and more efficient has there is
no reseising required now. the resizing method has been removed as
it is very, very inefficient. Even serial code should be faster now.
It is now forbidden to do an inplace update of scalar data object with an object 
of rank >0 as this is very slow (and does not make much sense). 



Revision 804 - (view) (annotate) - [select for diffs]
Modified Thu Aug 10 01:12:16 2006 UTC (16 years, 7 months ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 12182 byte(s)
Diff to previous 800
the new function swap_axes + tests added. (It replaces swap).



Revision 800 - (view) (annotate) - [select for diffs]
Modified Tue Aug 8 11:23:18 2006 UTC (16 years, 7 months ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 12188 byte(s)
Diff to previous 775
new function _swap. Python wrapper + testing is still missing.



Revision 775 - (view) (annotate) - [select for diffs]
Modified Mon Jul 10 04:00:08 2006 UTC (16 years, 8 months ago) by ksteube
Original Path: trunk/escript/src/DataAbstract.h
File length: 11923 byte(s)
Diff to previous 757
Modified the following python methods in escript/py_src/util.py to
call faster C++ methods:
	escript_trace
	escript_transpose
	escript_symmetric
	escript_nonsymmetric


Revision 757 - (view) (annotate) - [select for diffs]
Modified Mon Jun 26 13:12:56 2006 UTC (16 years, 9 months ago) by woo409
Original Path: trunk/escript/src/DataAbstract.h
File length: 11198 byte(s)
Diff to previous 615
+ Merge of intelc_win32 branch (revision 741:755) with trunk. Tested on iVEC altix (run_tests and py_tests all pass)


Revision 615 - (view) (annotate) - [select for diffs]
Modified Wed Mar 22 02:12:00 2006 UTC (17 years ago) by elspeth
Original Path: trunk/escript/src/DataAbstract.h
File length: 10634 byte(s)
Diff to previous 576
More copyright information.


Revision 576 - (view) (annotate) - [select for diffs]
Modified Fri Mar 3 08:28:42 2006 UTC (17 years ago) by gross
Original Path: trunk/escript/src/DataAbstract.h
File length: 10955 byte(s)
Diff to previous 480
some steps towards eigenvalue and eigenvector calculation

Revision 480 - (view) (annotate) - [select for diffs]
Modified Wed Feb 1 05:15:12 2006 UTC (17 years, 1 month ago) by jgs
Original Path: trunk/escript/src/DataAbstract.h
File length: 10178 byte(s)
Diff to previous 478
rationalise #includes and forward declarations


Revision 478 - (view) (annotate) - [select for diffs]
Modified Tue Jan 31 02:21:49 2006 UTC (17 years, 1 month ago) by jgs
Original Path: trunk/escript/src/DataAbstract.h
File length: 10197 byte(s)
Diff to previous 474
rationalise #includes


Revision 474 - (view) (annotate) - [select for diffs]
Modified Mon Jan 30 04:23:44 2006 UTC (17 years, 1 month ago) by jgs
Original Path: trunk/escript/src/DataAbstract.h
File length: 10285 byte(s)
Copied from: trunk/escript/src/Data/DataAbstract.h revision 469
Diff to previous 155
restructure escript source tree
move src/Data/* -> src
remove inc
modify #includes and cpppath settings accordingly


Revision 155 - (view) (annotate) - [select for diffs]
Modified Wed Nov 9 02:02:19 2005 UTC (17 years, 4 months ago) by jgs
Original Path: trunk/escript/src/Data/DataAbstract.h
File length: 10337 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 (17 years, 6 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 10337 byte(s)
Diff to previous 126
Merge of development branch dev-02 back to main trunk on 2005-09-01


Revision 126 - (view) (annotate) - [select for diffs]
Modified Fri Jul 22 03:53:08 2005 UTC (17 years, 8 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 10109 byte(s)
Diff to previous 123
Merge of development branch back to main trunk on 2005-07-22


Revision 123 - (view) (annotate) - [select for diffs]
Modified Fri Jul 8 04:08:13 2005 UTC (17 years, 8 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 9807 byte(s)
Diff to previous 121
Merge of development branch back to main trunk on 2005-07-08


Revision 121 - (view) (annotate) - [select for diffs]
Modified Fri May 6 04:26:16 2005 UTC (17 years, 10 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 9094 byte(s)
Diff to previous 119
Merge of development branch back to main trunk on 2005-05-06


Revision 119 - (view) (annotate) - [select for diffs]
Modified Tue Apr 12 04:45:05 2005 UTC (17 years, 11 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 9094 byte(s)
Diff to previous 117
*** empty log message ***


Revision 117 - (view) (annotate) - [select for diffs]
Modified Fri Apr 1 05:48:57 2005 UTC (17 years, 11 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 9062 byte(s)
Diff to previous 110
*** empty log message ***


Revision 110 - (view) (annotate) - [select for diffs]
Modified Mon Feb 14 04:14:42 2005 UTC (18 years, 1 month ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 8270 byte(s)
Diff to previous 106
*** empty log message ***


Revision 106 - (view) (annotate) - [select for diffs]
Modified Thu Dec 23 07:20:12 2004 UTC (18 years, 3 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 7280 byte(s)
Diff to previous 82
*** empty log message ***


Revision 82 - (view) (annotate) - [select for diffs]
Added Tue Oct 26 06:53:54 2004 UTC (18 years, 5 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataAbstract.h
File length: 7292 byte(s)
Initial revision


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