Skip to content

Commit

Permalink
More build stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 30, 2017
1 parent b26cbe5 commit 5c96a61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion io/GeotiffSupport.cpp
Expand Up @@ -99,7 +99,7 @@ GeotiffSrs::GeotiffSrs(const std::vector<uint8_t>& directoryRec,
};
#pragma pack(pop)

const ShortKeyHeader *header = (ShortKeyHeader *)directoryRec.data();
ShortKeyHeader *header = (ShortKeyHeader *)directoryRec.data();
size_t declaredSize = (header->numKeys + 1) * 4;
if (directoryRec.size() < declaredSize)
return;
Expand Down
3 changes: 3 additions & 0 deletions vendor/kazhdan/CMakeLists.txt
Expand Up @@ -8,6 +8,9 @@ PDAL_ADD_FREE_LIBRARY(${PDAL_KAZHDAN_LIB_NAME} STATIC
Geometry.cpp
MarchingCubes.cpp
)
if (UNIX)
target_compile_options(${PDAL_KAZHDAN_LIB_NAME} PRIVATE -fPIC)
endif()
target_link_libraries(${PDAL_KAZHDAN_LIB_NAME})

set_property(GLOBAL PROPERTY _PDAL_KAZHDAN_INCLUDED TRUE)
7 changes: 3 additions & 4 deletions vendor/kazhdan/MultiGridOctreeData.System.inl
Expand Up @@ -1737,7 +1737,6 @@ DenseNodeData< Real > Octree< Real >::solveSystem( const FEMSystemFunctor& F , I
BSplineData< FEMDegree , BType > bsData( maxSolveDepth );

maxSolveDepth = std::min< LocalDepth >( maxSolveDepth , _maxDepth );
int iter = 0;
const int _iters = std::max< int >( 0 , solverInfo.iters );

DenseNodeData< Real > solution( _sNodesEnd( _maxDepth ) );
Expand All @@ -1749,11 +1748,11 @@ DenseNodeData< Real > Octree< Real >::solveSystem( const FEMSystemFunctor& F , I
{
int iters = (int)ceil( _iters * pow( solverInfo.lowResIterMultiplier , maxSolveDepth-d ) );
_SolverStats sStats;
if( !d ) iter = _solveSystemCG( F , bsData , interpolationInfo , d , solution , constraints , metSolution , _sNodesSize(d) , true , sStats , solverInfo.showResidual , 0 );
if( !d ) _solveSystemCG( F , bsData , interpolationInfo , d , solution , constraints , metSolution , _sNodesSize(d) , true , sStats , solverInfo.showResidual , 0 );
else
{
if( d>solverInfo.cgDepth ) iter = _solveSystemGS( F , bsData , interpolationInfo , d , solution , constraints , metSolution , iters , true , sStats , solverInfo.showResidual );
else iter = _solveSystemCG( F , bsData , interpolationInfo , d , solution , constraints , metSolution , iters , true , sStats , solverInfo.showResidual , solverInfo.cgAccuracy );
if( d>solverInfo.cgDepth ) _solveSystemGS( F , bsData , interpolationInfo , d , solution , constraints , metSolution , iters , true , sStats , solverInfo.showResidual );
else _solveSystemCG( F , bsData , interpolationInfo , d , solution , constraints , metSolution , iters , true , sStats , solverInfo.showResidual , solverInfo.cgAccuracy );
}
int femNodes = 0;
#pragma omp parallel for reduction( + : femNodes )
Expand Down

0 comments on commit 5c96a61

Please sign in to comment.