/[escript]/trunk-mpi-branch/finley/src/Assemble_CopyNodalData.c
ViewVC logotype

Diff of /trunk-mpi-branch/finley/src/Assemble_CopyNodalData.c

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

revision 1271 by gross, Tue Aug 21 00:15:52 2007 UTC revision 1272 by gross, Fri Aug 24 00:40:43 2007 UTC
# Line 107  void Finley_Assemble_CopyNodalData(Finle Line 107  void Finley_Assemble_CopyNodalData(Finle
107                     memcpy(getSampleDataFast(out,n), getSampleDataFast(in,n), numComps_size);                     memcpy(getSampleDataFast(out,n), getSampleDataFast(in,n), numComps_size);
108                }                }
109    
110             } else if (in_data_type == FINLEY_REDUCED_NODES) {             } else if (out_data_type == FINLEY_REDUCED_NODES) {
111                #pragma omp parallel for private(n,i) schedule(static)                #pragma omp parallel for private(n,i) schedule(static)
112                for (n=0;n<nodes->reducedNodesMapping->numTargets;n++) {                for (n=0;n<nodes->reducedNodesMapping->numTargets;n++) {
113                     memcpy(getSampleDataFast(in,nodes->reducedNodesMapping->map[n]),                     memcpy(getSampleDataFast(in,nodes->reducedNodesMapping->map[n]),
# Line 135  void Finley_Assemble_CopyNodalData(Finle Line 135  void Finley_Assemble_CopyNodalData(Finle
135             if  (out_data_type == FINLEY_NODES) {             if  (out_data_type == FINLEY_NODES) {
136               Finley_setError(TYPE_ERROR,"Finley_Assemble_CopyNodalData: cannot copy from reduced nodes to nodes.");               Finley_setError(TYPE_ERROR,"Finley_Assemble_CopyNodalData: cannot copy from reduced nodes to nodes.");
137    
138             } else if (in_data_type == FINLEY_REDUCED_NODES) {             } else if (out_data_type == FINLEY_REDUCED_NODES) {
139                #pragma omp parallel for private(n) schedule(static)                #pragma omp parallel for private(n) schedule(static)
140                for (n=0;n<nodes->reducedNodesMapping->numNodes;n++) {                for (n=0;n<nodes->reducedNodesMapping->numNodes;n++) {
141                     memcpy(getSampleDataFast(out,n),getSampleDataFast(in,n),numComps_size);                     memcpy(getSampleDataFast(out,n),getSampleDataFast(in,n),numComps_size);
# Line 221  void Finley_Assemble_CopyNodalData(Finle Line 221  void Finley_Assemble_CopyNodalData(Finle
221             if  (out_data_type == FINLEY_NODES) {             if  (out_data_type == FINLEY_NODES) {
222               Finley_setError(TYPE_ERROR,"Finley_Assemble_CopyNodalData: cannot copy from reduced degrees of freedom to nodes.");               Finley_setError(TYPE_ERROR,"Finley_Assemble_CopyNodalData: cannot copy from reduced degrees of freedom to nodes.");
223    
224             } else if (in_data_type == FINLEY_REDUCED_NODES) {             } else if (out_data_type == FINLEY_REDUCED_NODES) {
225                 Paso_Coupler_allocBuffer(nodes->reducedDegreesOfFreedomCoupler,numComps);                 Paso_Coupler_allocBuffer(nodes->reducedDegreesOfFreedomCoupler,numComps);
226                 if (Paso_noError()) {                 if (Paso_noError()) {
227                      Paso_Coupler_startCollect(nodes->reducedDegreesOfFreedomCoupler,getSampleDataFast(in,0));                      Paso_Coupler_startCollect(nodes->reducedDegreesOfFreedomCoupler,getSampleDataFast(in,0));

Legend:
Removed from v.1271  
changed lines
  Added in v.1272

  ViewVC Help
Powered by ViewVC 1.1.26