Skip to content

Commit 35492eb

Browse files
authored
Merge branch 'master' into ParaGenerateStreamLines
2 parents 085d32a + 106d33f commit 35492eb

File tree

58 files changed

+8058
-1155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+8058
-1155
lines changed

src/CMake/Modules/FindOSPRay.cmake

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
## ======================================================================================= ##
2+
## Copyright 2014-2015 Texas Advanced Computing Center, The University of Texas at Austin ##
3+
## All rights reserved. ##
4+
## ##
5+
## Licensed under the BSD 3-Clause License, (the "License"); you may not use this file ##
6+
## except in compliance with the License. ##
7+
## A copy of the License is included with this software in the file LICENSE. ##
8+
## If your copy does not contain the License, you may obtain a copy of the License at: ##
9+
## ##
10+
## http://opensource.org/licenses/BSD-3-Clause ##
11+
## ##
12+
## Unless required by applicable law or agreed to in writing, software distributed under ##
13+
## the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ##
14+
## KIND, either express or implied. ##
15+
## See the License for the specific language governing permissions and limitations under ##
16+
## limitations under the License. ##
17+
## ======================================================================================= ##
18+
19+
20+
###############################################################################
21+
# Find OSPRay
22+
# defines:
23+
# OSPRAY_FOUND
24+
# OSPRAY_INCLUDE_DIRS
25+
# OSPRAY_LIBRARIES
26+
27+
set(OSPRAY_INSTALL_DIR "" CACHE PATH "install location of ospray")
28+
mark_as_advanced(OSPRAY_INSTALL_DIR)
29+
set(OSPRAY_BUILD_DIR "" CACHE PATH "build location of ospray")
30+
mark_as_advanced(OSPRAY_BUILD_DIR)
31+
if (OSPRAY_INSTALL_DIR AND OSPRAY_BUILD_DIR)
32+
message("Ignoring the ospray build location in favor of the intall location.")
33+
endif()
34+
35+
if (OSPRAY_INSTALL_DIR)
36+
37+
find_package(ospray CONFIG REQUIRED HINTS ${OSPRAY_INSTALL_DIR})
38+
39+
else()
40+
41+
if (OSPRAY_BUILD_DIR)
42+
#find corresponding source directory
43+
load_cache(${OSPRAY_BUILD_DIR} READ_WITH_PREFIX OSP_
44+
CMAKE_HOME_DIRECTORY
45+
embree_DIR
46+
)
47+
set(OSPRAY_SOURCE_DIR ${OSP_CMAKE_HOME_DIRECTORY})
48+
49+
set(OSPRAY_INCLUDE_DIRS
50+
${OSPRAY_BUILD_DIR}
51+
${OSPRAY_BUILD_DIR}/include
52+
${OSPRAY_SOURCE_DIR}
53+
${OSPRAY_SOURCE_DIR}/ospray/include
54+
)
55+
56+
# message(${OSP_embree_DIR})
57+
# message(${OSP_embree_DIR}/bin)
58+
# set(LIB_OSPRAY_EMBREE LIB_OSPRAY_EMBREE-NOTFOUND)
59+
# find_library(LIB_OSPRAY_EMBREE NAMES ospray_embree embree
60+
# PATHS ${OSPRAY_BUILD_DIR} ${OSPRAY_BUILD_DIR}/Release
61+
# ${OSP_embree_DIR} ${OSP_embree_DIR}/bin NO_DEFAULT_PATH)
62+
# mark_as_advanced(LIB_OSPRAY_EMBREE)
63+
64+
set(LIB_OSPRAY_COMMON LIB_OSPRAY_COMMON-NOTFOUND)
65+
find_library(LIB_OSPRAY_COMMON ospray_common
66+
PATHS ${OSPRAY_BUILD_DIR} ${OSPRAY_BUILD_DIR}/Release NO_DEFAULT_PATH)
67+
mark_as_advanced(LIB_OSPRAY_COMMON)
68+
69+
set(LIB_OSPRAY LIB_OSPRAY-NOTFOUND)
70+
find_library(LIB_OSPRAY ospray PATHS ${OSPRAY_BUILD_DIR} ${OSPRAY_BUILD_DIR}/Release NO_DEFAULT_PATH)
71+
mark_as_advanced(LIB_OSPRAY)
72+
73+
set(OSPRAY_LIBRARIES ${LIB_OSPRAY_COMMON} ${LIB_OSPRAY})
74+
75+
else()
76+
77+
message("Supply OSPRAY_INSTALL_DIR or OSPRAY_BUILD_DIR to find OSPRay")
78+
79+
endif()
80+
81+
endif()

src/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,15 @@ IF(WITH_TETGEN)
364364
ADD_DEFINITIONS(-DWITH_TETGEN)
365365
ENDIF()
366366

367+
########################################################################
368+
# Configure ospray module build-- TODO: convert into real external
369+
370+
OPTION(WITH_OSPRAY "Build with Ospray support." OFF)
371+
MARK_AS_ADVANCED(WITH_OSPRAY)
372+
IF(WITH_OSPRAY)
373+
ADD_DEFINITIONS(-DWITH_OSPRAY)
374+
ENDIF()
375+
367376
########################################################################
368377
# Copy Spire-SCIRun specific assets and shaders
369378

@@ -717,7 +726,7 @@ SET_PROPERTY(TARGET Testing_Utils PROPERTY FOLDER "Testing Support")
717726
SET_PROPERTY(TARGET Testing_ModuleTestBase PROPERTY FOLDER "Testing Support")
718727

719728
IF(BUILD_TESTING)
720-
729+
721730
#SET_PROPERTY(TARGET SCIRunTestData_external PROPERTY FOLDER "Testing Support")
722731

723732
SET_PROPERTY(TARGET Algorithms_Base_Tests PROPERTY FOLDER "Core/Algorithms/Tests")

src/Core/Algorithms/Factory/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ ENDIF()
7171
TARGET_LINK_LIBRARIES(Algorithms_Factory
7272
Algorithms_Base
7373
Algorithms_BrainStimulator
74+
Algorithms_Legacy_Inverse
7475
Core_Algorithms_Legacy_Fields
7576
Algorithms_Math
7677
Algorithms_DataIO

src/Core/Algorithms/Legacy/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ ADD_SUBDIRECTORY(Fields)
3030
ADD_SUBDIRECTORY(DataIO)
3131
ADD_SUBDIRECTORY(Converter)
3232
ADD_SUBDIRECTORY(Forward)
33+
ADD_SUBDIRECTORY(Inverse)
3334
ADD_SUBDIRECTORY(Geometry)
3435
ADD_SUBDIRECTORY(FiniteElements)
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#
2+
# For more information, please see: http://software.sci.utah.edu
3+
#
4+
# The MIT License
5+
#
6+
# Copyright (c) 2015 Scientific Computing and Imaging Institute,
7+
# University of Utah.
8+
#
9+
#
10+
# Permission is hereby granted, free of charge, to any person obtaining a
11+
# copy of this software and associated documentation files (the "Software"),
12+
# to deal in the Software without restriction, including without limitation
13+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
14+
# and/or sell copies of the Software, and to permit persons to whom the
15+
# Software is furnished to do so, subject to the following conditions:
16+
#
17+
# The above copyright notice and this permission notice shall be included
18+
# in all copies or substantial portions of the Software.
19+
#
20+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26+
# DEALINGS IN THE SOFTWARE.
27+
#
28+
29+
SET(Algorithms_Legacy_Inverse_SRCS
30+
TikhonovAlgoAbstractBase.cc
31+
TikhonovImpl.cc
32+
SolveInverseProblemWithStandardTikhonovImpl.cc
33+
SolveInverseProblemWithTikhonovSVD_impl.cc
34+
SolveInverseProblemWithTikhonovTSVD_impl.cc
35+
)
36+
37+
SET(Algorithms_Legacy_Inverse_HEADERS
38+
TikhonovAlgoAbstractBase.h
39+
TikhonovImpl.h
40+
SolveInverseProblemWithStandardTikhonovImpl.h
41+
SolveInverseProblemWithTikhonovSVD_impl.h
42+
SolveInverseProblemWithTikhonovTSVD_impl.h
43+
share.h
44+
)
45+
46+
SCIRUN_ADD_LIBRARY(Algorithms_Legacy_Inverse
47+
${Algorithms_Legacy_Inverse_HEADERS}
48+
${Algorithms_Legacy_Inverse_SRCS}
49+
)
50+
51+
TARGET_LINK_LIBRARIES(Algorithms_Legacy_Inverse
52+
Core_Datatypes #matrices
53+
Core_Datatypes_Legacy_Field
54+
Algorithms_Math
55+
Core_Geometry_Primitives #vectors
56+
Core_Basis #field basis
57+
Core_Algorithms_Legacy_Fields
58+
Algorithms_Base
59+
${SCI_BOOST_LIBRARY}
60+
)
61+
62+
IF(BUILD_SHARED_LIBS)
63+
ADD_DEFINITIONS(-DBUILD_Algorithms_Legacy_Inverse)
64+
ENDIF(BUILD_SHARED_LIBS)
65+
66+
#SCIRUN_ADD_TEST_DIR(Tests)

0 commit comments

Comments
 (0)