/[escript]/branches/arrayview_from_1695_trunk/escript/src/DataExpanded.cpp
ViewVC logotype

Log of /branches/arrayview_from_1695_trunk/escript/src/DataExpanded.cpp

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 1721 - (view) (annotate) - [select for diffs]
Modified Fri Aug 22 00:39:32 2008 UTC (14 years, 7 months ago) by jfenwick
File length: 30046 byte(s)
Diff to previous 1715
Branch commit.

Fixed problems with copyFromNumArray
Removed version of setTaggedValueFromCPP() which required DataArrayView.
Updated tests.



Revision 1715 - (view) (annotate) - [select for diffs]
Modified Thu Aug 21 04:52:14 2008 UTC (14 years, 7 months ago) by jfenwick
File length: 30011 byte(s)
Diff to previous 1714
Branch commit.

Moved getSliceRegionLoopRange and checkShape into DataTypes.h
Some work on methods to set/addTaggedValues without using DataArrayView.
To do this I added copyFromNumArray() on DataVector (It buggy at the 
moment).

This build passes the tests but only because copyFromNumArray is not 
used.



Revision 1714 - (view) (annotate) - [select for diffs]
Modified Thu Aug 21 00:01:55 2008 UTC (14 years, 7 months ago) by jfenwick
File length: 29032 byte(s)
Diff to previous 1704
Branch commit

Moved getSliceRegion() and getSliceRange() into DataTypes
Data.cpp - modified not to rely on operator() from DataArrayView
         - Used more const& to avoid copies



Revision 1704 - (view) (annotate) - [select for diffs]
Modified Thu Aug 14 05:35:32 2008 UTC (14 years, 7 months ago) by jfenwick
File length: 29040 byte(s)
Diff to previous 1698
Branch commit:

DataTagged::addTag() = Add a tag with default value. (All uses that I can find 
apart from test code only require this anyway).

DataAbstract now knows its own shape, rank and number of values and have accessors 
for them.
Data Objects also have acessors for these but query their DataAbstracts for the 
answers.

Data::getDataAtOffset() = access to a particular point in the underlying array. (At 
the moment this call references the DataArrayView, but that will change when I have 
everything else working).

DataTagged::getDataByTag() = same but search by tag.
DataTagged::getDefaultValue() = returns default value without obvious reference to 
DataArrayView


C_GeneralTensorProduct_J  is my temporary copy of C_GeneralTensorProduct for 
experimentation.
It and a number of other temporary functions live in JoelMods.cpp_ for now.



Revision 1698 - (view) (annotate) - [select for diffs]
Modified Tue Aug 12 01:13:16 2008 UTC (14 years, 7 months ago) by jfenwick
File length: 28916 byte(s)
Diff to previous 1697
Branch commit DO NOT PANIC.

Moved shapeToString and noValues from DataArrayView to 
DataTypes{.h,.cpp}



Revision 1697 - (view) (annotate) - [select for diffs]
Modified Mon Aug 11 06:29:54 2008 UTC (14 years, 7 months ago) by jfenwick
File length: 28924 byte(s)
Diff to previous 1696
Moved ValueType, ShapeType, RegionType, RegionLoopRangeType and maxRank
From DataArrayView.h to DataTypes.h

This is a simple rename but did require modifying a lot of files.



Revision 1696 - (view) (annotate) - [select for diffs]
Modified Mon Aug 11 03:33:40 2008 UTC (14 years, 7 months ago) by jfenwick
File length: 29036 byte(s)
Diff to previous 1628
Branching to perform experiments on removing DataArrayView


Revision 1628 - (view) (annotate) - [select for diffs]
Modified Fri Jul 11 13:12:46 2008 UTC (14 years, 8 months ago) by phornby
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 29036 byte(s)
Diff to previous 1513

Merge in /branches/windows_from_1456_trunk_1620_merged_in branch.

You will find a preserved pre-merge trunk in tags under tags/trunk_at_1625.
That will be useful for diffing & checking on my stupidity.

Here is a list of the conflicts and their resolution at this
point in time.


=================================================================================
(LLWS == looks like white space).

finley/src/Assemble_addToSystemMatrix.c - resolve to branch - unused var. may be wrong.....
finley/src/CPPAdapter/SystemMatrixAdapter.cpp - resolve to branch - LLWS
finley/src/CPPAdapter/MeshAdapter.cpp - resolve to branch - LLWS
paso/src/PCG.c - resolve to branch - unused var fixes.
paso/src/SolverFCT.c - resolve to branch - LLWS
paso/src/FGMRES.c - resolve to branch - LLWS
paso/src/Common.h - resolve to trunk version. It's omp.h's include... not sure it's needed,
but for the sake of saftey.....
paso/src/Functions.c - resolve to branch version, indentation/tab removal and return error
on bad unimplemented Paso_FunctionCall.
paso/src/SolverFCT_solve.c - resolve to branch version, unused vars
paso/src/SparseMatrix_MatrixVector.c - resolve to branch version, unused vars.
escript/src/Utils.cpp - resloved to branch, needs WinSock2.h
escript/src/DataExpanded.cpp - resolved to branch version - LLWS
escript/src/DataFactory.cpp - resolve to branch version
=================================================================================

This currently passes tests on linux (debian), but is not checked on windows or Altix yet.

This checkin is to make a trunk I can check out for windows to do tests on it.

Known outstanding problem is in the operator=() method of exceptions
causing warning messages on the intel compilers.

May the God of doughnuts have mercy on my soul.



Revision 1513 - (view) (annotate) - [select for diffs]
Modified Tue Apr 15 08:47:57 2008 UTC (14 years, 11 months ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 29039 byte(s)
Diff to previous 1487
pragma ivdep removed. icc produced wrong code.

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/DataExpanded.cpp
File length: 29070 byte(s)
Diff to previous 1455
reordering when reading Netcfd files added.

Revision 1455 - (view) (annotate) - [select for diffs]
Modified Thu Feb 28 17:19:44 2008 UTC (15 years, 1 month ago) by phornby
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 27717 byte(s)
Diff to previous 1388
Merge of branches/windows_from_1431_trunk.

Revamp of the exception system.
Fix unused vars and signed/unsigned comparisons.
defined a macro THROW(ARG) in the system_dep.h's to
deal with the expectations of declarations on different architectures.

Details in the logs of branches/windows_from_1431_trunk.

pre-merge snapshot of the trunk in tags/trunk_at_1452



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/DataExpanded.cpp
File length: 27725 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/DataExpanded.cpp
File length: 27725 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/DataExpanded.cpp
File length: 27725 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/DataExpanded.cpp
File length: 27725 byte(s)
Diff to previous 1323
setTaggedValue works now for expanded data.

Revision 1323 - (view) (annotate) - [select for diffs]
Modified Thu Sep 27 06:20:29 2007 UTC (15 years, 6 months ago) by matt
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 26751 byte(s)
Diff to previous 1319
Minor inconsistency.


Revision 1319 - (view) (annotate) - [select for diffs]
Modified Thu Sep 27 00:27:51 2007 UTC (15 years, 6 months ago) by matt
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 26745 byte(s)
Diff to previous 1312
DataArray is no longer needed. However, the unit tests still require it.


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/DataExpanded.cpp
File length: 26448 byte(s)
Diff to previous 1141
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 1141 - (view) (annotate) - [select for diffs]
Modified Tue May 15 04:24:51 2007 UTC (15 years, 10 months ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 26589 byte(s)
Diff to previous 1137
Some changes to make things run on windows. There is still a problem with netcdf an long file names on windows but there is the suspicion that this is a bigger problem related to boost (compiler options). In fact runs with large numbers of iteration/time steps tend to create seg faults. 

Revision 1137 - (view) (annotate) - [select for diffs]
Modified Thu May 10 08:11:31 2007 UTC (15 years, 10 months ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 26563 byte(s)
Diff to previous 1131
This version passes the tests on windows except for 

   * vtk
   * netCDF

The version needs to be tested on altix and linux

Revision 1131 - (view) (annotate) - [select for diffs]
Modified Tue May 8 05:52:21 2007 UTC (15 years, 10 months ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 26555 byte(s)
Diff to previous 1118
netcdf c++ interface removed

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/DataExpanded.cpp
File length: 26555 byte(s)
Diff to previous 1023
problem with reset of faulty PDE rhs fixed.

Revision 1023 - (view) (annotate) - [select for diffs]
Modified Tue Mar 13 05:43:36 2007 UTC (16 years ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 25952 byte(s)
Diff to previous 983
netCDF can now be switched off at compilation. Consequently load and dump of data objects is not available then.

Revision 983 - (view) (annotate) - [select for diffs]
Modified Tue Feb 20 02:49:08 2007 UTC (16 years, 1 month ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 25759 byte(s)
Diff to previous 967
full Data object dump and load now available. Tests added.

Revision 967 - (view) (annotate) - [select for diffs]
Modified Tue Feb 13 09:40:12 2007 UTC (16 years, 1 month ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 25761 byte(s)
Diff to previous 966
dump and load of expanded data via netCDF added. some test are still missing.

Revision 966 - (view) (annotate) - [select for diffs]
Modified Tue Feb 13 05:45:18 2007 UTC (16 years, 1 month ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 22591 byte(s)
Diff to previous 965
ops! escript/src/DataExpanded.cpp should not be in there

Revision 965 - (view) (annotate) - [select for diffs]
Modified Tue Feb 13 05:38:45 2007 UTC (16 years, 1 month ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 25310 byte(s)
Diff to previous 964
johns local setting removed.

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/DataExpanded.cpp
File length: 22584 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/DataExpanded.cpp
File length: 24428 byte(s)
Diff to previous 924
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 924 - (view) (annotate) - [select for diffs]
Modified Wed Jan 10 03:39:27 2007 UTC (16 years, 2 months ago) by trankine
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 24234 byte(s)
Diff to previous 922
Win32 port modifications
"or" is not a valid modifier under win intel compiler

* Data.cpp - incorrect "or"s
* DataExpanded.cpp - incorrect "or"s



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/DataExpanded.cpp
File length: 24218 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/DataExpanded.cpp
File length: 22334 byte(s)
Diff to previous 856
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 856 - (view) (annotate) - [select for diffs]
Modified Tue Sep 26 01:00:36 2006 UTC (16 years, 6 months ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 20168 byte(s)
Diff to previous 854
data print shows now the element reference number

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/DataExpanded.cpp
File length: 20069 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/DataExpanded.cpp
File length: 21342 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/DataExpanded.cpp
File length: 21325 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/DataExpanded.cpp
File length: 20473 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/DataExpanded.cpp
File length: 16984 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/DataExpanded.cpp
File length: 16985 byte(s)
Diff to previous 584
More copyright information.


Revision 584 - (view) (annotate) - [select for diffs]
Modified Thu Mar 9 23:03:38 2006 UTC (17 years ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 17307 byte(s)
Diff to previous 580
eigenvalues: compiles and passes tests on altix now

Revision 580 - (view) (annotate) - [select for diffs]
Modified Wed Mar 8 05:45:51 2006 UTC (17 years ago) by gross
Original Path: trunk/escript/src/DataExpanded.cpp
File length: 17267 byte(s)
Diff to previous 480
faster version of the local eigenvalue 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/DataExpanded.cpp
File length: 15060 byte(s)
Diff to previous 474
rationalise #includes and forward declarations


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/DataExpanded.cpp
File length: 15108 byte(s)
Copied from: trunk/escript/src/Data/DataExpanded.cpp revision 469
Diff to previous 160
restructure escript source tree
move src/Data/* -> src
remove inc
modify #includes and cpppath settings accordingly


Revision 160 - (view) (annotate) - [select for diffs]
Modified Thu Nov 10 05:09:25 2005 UTC (17 years, 4 months ago) by jgs
Original Path: trunk/escript/src/Data/DataExpanded.cpp
File length: 15173 byte(s)
Diff to previous 155
fixed a broken constructor - simply didn't work


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/DataExpanded.cpp
File length: 15188 byte(s)
Diff to previous 126
move all directories from trunk/esys2 into trunk and remove esys2


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/DataExpanded.cpp
File length: 15188 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/DataExpanded.cpp
File length: 13077 byte(s)
Diff to previous 122
Merge of development branch back to main trunk on 2005-07-08


Revision 122 - (view) (annotate) - [select for diffs]
Modified Thu Jun 9 05:38:05 2005 UTC (17 years, 9 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataExpanded.cpp
File length: 12693 byte(s)
Diff to previous 119
Merge of development branch back to main trunk on 2005-06-09


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/DataExpanded.cpp
File length: 12383 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/DataExpanded.cpp
File length: 11975 byte(s)
Diff to previous 113
*** empty log message ***


Revision 113 - (view) (annotate) - [select for diffs]
Modified Mon Feb 28 07:06:33 2005 UTC (18 years, 1 month ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataExpanded.cpp
File length: 11563 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/DataExpanded.cpp
File length: 11632 byte(s)
Diff to previous 108
*** empty log message ***


Revision 108 - (view) (annotate) - [select for diffs]
Modified Thu Jan 27 06:21:59 2005 UTC (18 years, 2 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataExpanded.cpp
File length: 9782 byte(s)
Diff to previous 102
*** empty log message ***


Revision 102 - (view) (annotate) - [select for diffs]
Modified Wed Dec 15 07:08:39 2004 UTC (18 years, 3 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataExpanded.cpp
File length: 9499 byte(s)
Diff to previous 100
*** empty log message ***


Revision 100 - (view) (annotate) - [select for diffs]
Modified Wed Dec 15 03:48:48 2004 UTC (18 years, 3 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataExpanded.cpp
File length: 10039 byte(s)
Diff to previous 97
*** empty log message ***


Revision 97 - (view) (annotate) - [select for diffs]
Modified Tue Dec 14 05:39:33 2004 UTC (18 years, 3 months ago) by jgs
Original Path: trunk/esys2/escript/src/Data/DataExpanded.cpp
File length: 9499 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/DataExpanded.cpp
File length: 10039 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