refactor refine pp
This commit is contained in:
parent
ea6f80c84d
commit
5172d10303
@ -13,7 +13,6 @@
|
|||||||
#include "ProfilerApp.h"
|
#include "ProfilerApp.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AnalysisType& operator |=(AnalysisType &lhs, AnalysisType rhs)
|
AnalysisType& operator |=(AnalysisType &lhs, AnalysisType rhs)
|
||||||
{
|
{
|
||||||
lhs = static_cast<AnalysisType>(
|
lhs = static_cast<AnalysisType>(
|
||||||
|
@ -109,7 +109,7 @@ int main(int argc, char **argv)
|
|||||||
sprintf(LocalRankFilename,"ID.%05i",rank);
|
sprintf(LocalRankFilename,"ID.%05i",rank);
|
||||||
FILE *LABELS = fopen(LocalRankFilename,"rb");
|
FILE *LABELS = fopen(LocalRankFilename,"rb");
|
||||||
size_t ReadLabels;
|
size_t ReadLabels;
|
||||||
ReadSignLABELS=fread(Labels,1,N,LABELS);
|
ReadLabels=fread(Labels,1,N,LABELS);
|
||||||
if (ReadLabels != size_t(N)) printf("lbpm_refine_pp: Error reading ID (rank=%i)\n",rank);
|
if (ReadLabels != size_t(N)) printf("lbpm_refine_pp: Error reading ID (rank=%i)\n",rank);
|
||||||
fclose(LABELS);
|
fclose(LABELS);
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ int main(int argc, char **argv)
|
|||||||
pt.y=0.5*(rj-1)+1.f;
|
pt.y=0.5*(rj-1)+1.f;
|
||||||
pt.z=0.5*(rk-1)+1.f;
|
pt.z=0.5*(rk-1)+1.f;
|
||||||
RefinedSignDist(ri,rj,rk) = LocalApprox.eval(pt);
|
RefinedSignDist(ri,rj,rk) = LocalApprox.eval(pt);
|
||||||
RefineLabel(ri,rj,rk) = Label[k*nx*ny+j*nx+i];
|
RefineLabel(ri,rj,rk) = Labels[k*nx*ny+j*nx+i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user