Changeset 2587


Ignore:
Timestamp:
11/02/09 14:33:24 (15 years ago)
Author:
Eric.Larour
Message:

Adapted IsInPoly to work in threaded mode.

Location:
issm/trunk/src/c/shared/Exp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/shared/Exp/IsInPoly.cpp

    r291 r2587  
    88#include "../shared.h"
    99
     10#ifdef HAVE_CONFIG_H
     11        #include "config.h"
     12#else
     13#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     14#endif
    1015
    1116
    12 int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue){
     17
     18
     19int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int i0,int i1, int edgevalue){
    1320
    1421        int i;
     
    1724
    1825        /*Go through all grids of the mesh:*/
    19         for (i=MPI_Lowerrow(nods);i<MPI_Upperrow(nods);i++){
     26        for (i=i0;i<i1;i++){
    2027
    2128                //Get current value of value[i] -> do not change it if != 0
  • issm/trunk/src/c/shared/Exp/exp.h

    r1 r2587  
    99#include "../../toolkits/toolkits.h"
    1010
    11 int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue);
     11int IsInPoly(Vec in,double* xc,double* yc,int numgrids,double* x,double* y,int i0,int i1, int edgevalue);
    1212int IsInPolySerial(double* in,double* xc,double* yc,int numgrids,double* x,double* y,int nods, int edgevalue);
    1313int IsOutsidePoly(Vec out,double* xc,double* yc,int numgrids,double* x,double* y,int nods,int edgevalue);
Note: See TracChangeset for help on using the changeset viewer.