/[escript]/branches/arrexp_2137_win_merge/finley/src/NodeFile_setCoordinates.c
ViewVC logotype

Diff of /branches/arrexp_2137_win_merge/finley/src/NodeFile_setCoordinates.c

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

revision 2221 by jfenwick, Wed Jan 14 00:23:39 2009 UTC revision 2222 by jfenwick, Tue Jan 20 04:52:39 2009 UTC
# Line 39  void Finley_NodeFile_setCoordinates(Finl Line 39  void Finley_NodeFile_setCoordinates(Finl
39     } else {     } else {
40            numDim_size=self->numDim*sizeof(double);            numDim_size=self->numDim*sizeof(double);
41            Finley_increaseStatus(self);            Finley_increaseStatus(self);
42            #pragma omp parallel for private(n) schedule(static)        #pragma omp parallel private(n)
43            for (n=0;n<self->numNodes;n++) {        {
44              memcpy(&(self->Coordinates[INDEX2(0,n,self->numDim)]), getSampleDataFast(newX,n), numDim_size);           void* buff=allocSampleBuffer(newX);
45            }               #pragma omp for schedule(static)
46                 for (n=0;n<self->numNodes;n++) {
47                    memcpy(&(self->Coordinates[INDEX2(0,n,self->numDim)]), getSampleDataROFast(newX,n,buff), numDim_size);
48                 }
49             freeSampleBuffer(buff);
50          }
51     }     }
52  }  }

Legend:
Removed from v.2221  
changed lines
  Added in v.2222

  ViewVC Help
Powered by ViewVC 1.1.26