Changeset 14377
- Timestamp:
- 02/23/13 10:02:01 (12 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/Exp2Kmlx/Exp2Kmlx.cpp
r13622 r14377 54 54 /*read exp file */ 55 55 56 if (! DomainOutlineRead(&nprof,&pnvert,&pprofx,&pprofy,&closed,filexp))56 if (!ExpRead(&nprof,&pnvert,&pprofx,&pprofy,&closed,filexp)) 57 57 _error_("Error reading exp file."); 58 58 _pprintLine_("Exp2Kmlx -- Reading " << nprof << " exp profiles from file \"" << filexp << "\"."); -
issm/trunk-jpl/src/c/modules/Krigingx/pKrigingx.cpp
r14338 r14377 69 69 /*partition loop across threads: */ 70 70 for(int idx=my_rank;idx<n_interp;idx+=num_procs){ 71 _pprintLine_(" interpolation progress: "<< setw(6)<<setprecision(2)<<double(idx)/double(n_interp)*100.<<"%");71 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision(4)<<double(idx)/double(n_interp)*100.<<"%"); 72 72 observations->InterpolationKriging(&predictions[idx],&error[idx],x_interp[idx],y_interp[idx],radius,mindata,maxdata,variogram); 73 73 } 74 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision( 2)<<100.<<"%");74 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision(4)<<100.<<"%"); 75 75 76 76 #ifdef _HAVE_MPI_ … … 87 87 /*partition loop across threads: */ 88 88 for(int idx=my_rank;idx<n_interp;idx+=num_procs){ 89 _pprintLine_(" interpolation progress: "<< setw(6)<<setprecision(2)<<double(idx)/double(n_interp)*100.<<"%");89 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision(4)<<double(idx)/double(n_interp)*100.<<"%"); 90 90 observations->InterpolationV4(&predictions[idx],x_interp[idx],y_interp[idx],radius,mindata,maxdata); 91 91 } 92 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision( 2)<<100.<<"%");92 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision(4)<<100.<<"%"); 93 93 94 94 #ifdef _HAVE_MPI_ … … 102 102 /*partition loop across threads: */ 103 103 for(int idx=my_rank;idx<n_interp;idx+=num_procs){ 104 _pprintLine_(" interpolation progress: "<<setw(6)<<setprecision( 2)<<double(idx)/double(n_interp)*100.<<"%");104 _pprintLine_(" interpolation progress: "<<setw(6)<<setprecision(4)<<double(idx)/double(n_interp)*100.<<"%"); 105 105 observations->InterpolationNearestNeighbor(&predictions[idx],x_interp[idx],y_interp[idx],radius); 106 106 } 107 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision( 2)<<100.<<"%");107 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision(4)<<100.<<"%"); 108 108 109 109 #ifdef _HAVE_MPI_ … … 119 119 /*partition loop across threads: */ 120 120 for(int idx=my_rank;idx<n_interp;idx+=num_procs){ 121 _pprintLine_(" interpolation progress: "<<setw(6)<<setprecision( 2)<<double(idx)/double(n_interp)*100.<<"%");121 _pprintLine_(" interpolation progress: "<<setw(6)<<setprecision(4)<<double(idx)/double(n_interp)*100.<<"%"); 122 122 observations->InterpolationIDW(&predictions[idx],x_interp[idx],y_interp[idx],radius,mindata,maxdata,power); 123 123 } 124 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision( 2)<<100.<<"%");124 _pprintLine_(" interpolation progress: "<<fixed<<setw(6)<<setprecision(4)<<100.<<"%"); 125 125 126 126 #ifdef _HAVE_MPI_ -
issm/trunk-jpl/src/c/shared/Exp/exp.h
r14293 r14377 58 58 return 1; 59 59 }/*}}}*/ 60 /* DomainOutlineRead{{{*/60 /*int ExpRead(int* pnprof,int** pprofnvertices,doubletype*** ppprofx,doubletype*** ppprofy,bool** pclosed,char* domainname){{{*/ 61 61 template <class doubletype> 62 int DomainOutlineRead(int* pnprof,int** pprofnvertices,doubletype*** ppprofx,doubletype*** ppprofy,bool** pclosed,char* domainname){62 int ExpRead(int* pnprof,int** pprofnvertices,doubletype*** ppprofx,doubletype*** ppprofy,bool** pclosed,char* domainname){ 63 63 64 64 /*indexing: */ … … 162 162 else xDelete<bool>(closed); 163 163 } /*}}}*/ 164 /*DataSet* DomainOutlineRead(char* domainname){{{*/164 /*DataSet* ExpRead(char* domainname){{{*/ 165 165 template <class doubletype> 166 DataSet* DomainOutlineRead(char* domainname){166 DataSet* ExpRead(char* domainname){ 167 167 168 168 /*intermediary: */ … … 180 180 } 181 181 else{ 182 DomainOutlineRead(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname);182 ExpRead(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname); 183 183 } 184 184 -
issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp
r14345 r14377 134 134 135 135 /*Read old contours and allocate new contours*/ 136 oldcontours= DomainOutlineRead<double>(expfile);136 oldcontours=ExpRead<double>(expfile); 137 137 newcontours=new DataSet(0); 138 138 for(int counter=0;counter<oldcontours->Size();counter++){ -
issm/trunk-jpl/src/wrappers/matlab/io/FetchMatlabData.cpp
r14013 r14377 645 645 if (mxIsClass(dataref,"char")){ 646 646 FetchData(&contourname,dataref); 647 contours= DomainOutlineRead<double>(contourname);647 contours=ExpRead<double>(contourname); 648 648 } 649 649 else if(mxIsClass(dataref,"struct")){ -
issm/trunk-jpl/src/wrappers/python/io/FetchPythonData.cpp
r14317 r14377 752 752 if (PyString_Check(py_list)){ 753 753 FetchData(&contourname,py_list); 754 contours= DomainOutlineRead<double>(contourname);754 contours=ExpRead<double>(contourname); 755 755 } 756 756 else if(PyList_Check(py_list)){
Note:
See TracChangeset
for help on using the changeset viewer.