/[escript]/branches/split/finley/src/Assemble_CopyNodalData.cpp
ViewVC logotype

Diff of /branches/split/finley/src/Assemble_CopyNodalData.cpp

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

revision 4762 by jfenwick, Thu Mar 6 05:22:12 2014 UTC revision 4763 by jfenwick, Tue Mar 18 05:20:23 2014 UTC
# Line 166  void Assemble_CopyNodalData(const NodeFi Line 166  void Assemble_CopyNodalData(const NodeFi
166              if (Esys_noError()) {              if (Esys_noError()) {
167                  // Coupler holds the pointer but it doesn't appear to get                  // Coupler holds the pointer but it doesn't appear to get
168                  // used so RO should work.                  // used so RO should work.
169                  Paso_Coupler_startCollect(coupler, in.getSampleDataRO(0));                  Paso_Coupler_startCollect(coupler, in.getDataRO());
170                  const double *recv_buffer=Paso_Coupler_finishCollect(coupler);                  const double *recv_buffer=Paso_Coupler_finishCollect(coupler);
171                  const int upperBound=nodes->getNumDegreesOfFreedom();                  const int upperBound=nodes->getNumDegreesOfFreedom();
172                  const int* target = nodes->borrowTargetDegreesOfFreedom();                  const int* target = nodes->borrowTargetDegreesOfFreedom();
# Line 187  void Assemble_CopyNodalData(const NodeFi Line 187  void Assemble_CopyNodalData(const NodeFi
187          } else if  (out_data_type == FINLEY_REDUCED_NODES) {          } else if  (out_data_type == FINLEY_REDUCED_NODES) {
188              Paso_Coupler *coupler = Paso_Coupler_alloc(nodes->degreesOfFreedomConnector, numComps);              Paso_Coupler *coupler = Paso_Coupler_alloc(nodes->degreesOfFreedomConnector, numComps);
189              if (Esys_noError()) {              if (Esys_noError()) {
190                  Paso_Coupler_startCollect(coupler, in.getSampleDataRO(0));                  Paso_Coupler_startCollect(coupler, in.getDataRO());
191                  const double *recv_buffer=Paso_Coupler_finishCollect(coupler);                  const double *recv_buffer=Paso_Coupler_finishCollect(coupler);
192                  const int upperBound=nodes->getNumDegreesOfFreedom();                  const int upperBound=nodes->getNumDegreesOfFreedom();
193                  const std::vector<int>& map = nodes->borrowReducedNodesTarget();                  const std::vector<int>& map = nodes->borrowReducedNodesTarget();
# Line 230  void Assemble_CopyNodalData(const NodeFi Line 230  void Assemble_CopyNodalData(const NodeFi
230          } else if (out_data_type == FINLEY_REDUCED_NODES) {          } else if (out_data_type == FINLEY_REDUCED_NODES) {
231              Paso_Coupler *coupler=Paso_Coupler_alloc(nodes->reducedDegreesOfFreedomConnector,numComps);              Paso_Coupler *coupler=Paso_Coupler_alloc(nodes->reducedDegreesOfFreedomConnector,numComps);
232              if (Esys_noError()) {              if (Esys_noError()) {
233                  Paso_Coupler_startCollect(coupler, in.getSampleDataRO(0));                  Paso_Coupler_startCollect(coupler, in.getDataRO());
234                  out.requireWrite();                  out.requireWrite();
235                  const int upperBound=nodes->getNumReducedDegreesOfFreedom();                  const int upperBound=nodes->getNumReducedDegreesOfFreedom();
236                  const std::vector<int>& map=nodes->borrowReducedNodesTarget();                  const std::vector<int>& map=nodes->borrowReducedNodesTarget();

Legend:
Removed from v.4762  
changed lines
  Added in v.4763

  ViewVC Help
Powered by ViewVC 1.1.26