/[escript]/trunk/escript/src/AbstractTransportProblem.cpp
ViewVC logotype

Diff of /trunk/escript/src/AbstractTransportProblem.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1429 by trankine, Wed Feb 27 08:53:20 2008 UTC revision 1796 by jfenwick, Wed Sep 17 01:45:46 2008 UTC
# Line 14  Line 14 
14    
15  #include "AbstractTransportProblem.h"  #include "AbstractTransportProblem.h"
16  #include "TransportProblemException.h"  #include "TransportProblemException.h"
17  #include "DataArrayView.h"  #include "DataTypes.h"
18  #include "Data.h"  #include "Data.h"
19  #include <iostream>  #include <iostream>
20    
# Line 57  Data AbstractTransportProblem::solve(Dat Line 57  Data AbstractTransportProblem::solve(Dat
57            throw TransportProblemException("Error - function space of transport problem and function space of source do not match.");            throw TransportProblemException("Error - function space of transport problem and function space of source do not match.");
58       if (source.getDataPointSize()!=getBlockSize())       if (source.getDataPointSize()!=getBlockSize())
59            throw TransportProblemException("Error - block size of transport problem and source do not match.");            throw TransportProblemException("Error - block size of transport problem and source do not match.");
60       DataArrayView::ShapeType shape;       DataTypes::ShapeType shape;
61       if (getBlockSize()>1) shape.push_back(getBlockSize());       if (getBlockSize()>1) shape.push_back(getBlockSize());
62       Data out=Data(0.,shape,getFunctionSpace(),true);       Data out=Data(0.,shape,getFunctionSpace(),true);
63       setToSolution(out,source,dt,options);       setToSolution(out,source,dt,options);

Legend:
Removed from v.1429  
changed lines
  Added in v.1796

  ViewVC Help
Powered by ViewVC 1.1.26