Skip to content

Commit 90c6925

Browse files
authored
Merge branch 'master' into master
2 parents 434a4ec + 6f6d123 commit 90c6925

File tree

151 files changed

+21210
-6226
lines changed

Some content is hidden

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

151 files changed

+21210
-6226
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: Bug
6+
assignees: dcwhite
7+
8+
---
9+
10+
## For bugs, follow the template below: fill out all pertinent sections, then delete the rest of the template to reduce clutter.
11+
### If all prerequisites are met, just delete that text as well. If they're not all met, the issue will be closed or assigned back to you.
12+
13+
**Prerequisites**
14+
15+
* [ ] Are you running the [latest version of SCIRun](https://github.com/SCIInstitute/SCIRun/releases)?
16+
* [ ] Are you reporting to the [correct repository](https://github.com/SCIInstitute/SCIRun)?
17+
* [ ] Did you [perform a cursory search](https://github.com/SCIInstitute/SCIRun/issues) to see if your bug or enhancement is already reported?
18+
19+
For more information on how to write a good [bug report](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-bug-report) or [enhancement request](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-enhancement-suggestion), see the `CONTRIBUTING` guide. These links point to another project, but most of the advice holds in general.
20+
21+
**Describe the bug**
22+
A clear and concise description of what the bug is.
23+
24+
For Mac crash bugs, please *DO NOT* paste an entire MacOS crash report here. Edit it down to just the stack trace of the thread that crashed, along with the general system info on the top.
25+
26+
**In all bug cases, some combination of screenshots, sample network(s), and input data should be attached. You can use any cloud storage links you want for networks and data.**
27+
28+
**To Reproduce**
29+
Steps to reproduce the behavior:
30+
1. Go to '...'
31+
2. Click on '....'
32+
3. Scroll down to '....'
33+
4. See error
34+
35+
**Expected behavior**
36+
A clear and concise description of what you expected to happen.
37+
38+
**Screenshots**
39+
If applicable, add screenshots to help explain your problem.
40+
41+
**Version**
42+
43+
You can get this information from executing `SCIRun --version` at the command line, or clicking on the version button in the bottom right corner of the GUI (which copies the version to the clipboard).
44+
45+
**Desktop (please complete the following information):**
46+
- OS: [e.g. MacOS, Windows, Linux]
47+
- Version [e.g. 10.12, 10, Ubuntu 16.04]
48+
49+
**Additional context**
50+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: Enhancement
6+
assignees: dcwhite
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.travis.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,6 @@ matrix:
1717
sudo: required
1818
compiler: clang
1919
env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF
20-
- os: osx
21-
osx_image: xcode7.2
22-
env: PYTHON_VERSION=3.4.3 OSPRAY_BUILD=OFF
23-
- os: osx
24-
osx_image: xcode8.3
25-
env: PYTHON_VERSION=3.4.3 OSPRAY_BUILD=OFF
26-
- os: osx
27-
osx_image: xcode9.3
28-
env: PYTHON_VERSION=3.4.3 OSPRAY_BUILD=OFF
29-
- os: osx
30-
osx_image: xcode10.1
31-
env: PYTHON_VERSION=3.4.3 OSPRAY_BUILD=OFF
3220
- os: osx
3321
osx_image: xcode7.2
3422
env: PYTHON_VERSION=3.5.6 OSPRAY_BUILD=OFF
@@ -44,12 +32,6 @@ matrix:
4432
- os: osx
4533
osx_image: xcode7.2
4634
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
47-
- os: osx
48-
osx_image: xcode8.3
49-
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
50-
- os: osx
51-
osx_image: xcode9.3
52-
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF
5335
- os: osx
5436
osx_image: xcode10.1
5537
env: PYTHON_VERSION=3.6.7 OSPRAY_BUILD=OFF

src/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,18 @@ IF(BUILD_TESTING)
207207
ADD_DEFINITIONS(-DTEST_RESOURCE_ROOT_DIR="${SCIRUN_TEST_RESOURCE_DIR}" -DBUILD_TESTING)
208208
ENDIF()
209209

210+
#########################################################################
211+
# Configure Spdlog
212+
set (cxxfeaturelist ${CMAKE_CXX_COMPILE_FEATURES})
213+
214+
list (FIND cxxfeaturelist "cxx_thread_local" _index)
215+
if (${_index} GREATER -1)
216+
message("Found cxx_thread_local")
217+
else()
218+
message(WARNING "Did NOT find cxx_thread_local--turning off feature of spdlog")
219+
add_definitions(-DDISABLE_SPDLOG_TLS=1)
220+
endif()
221+
210222
#########################################################################
211223
# External projects
212224

src/Core/Algorithms/Field/InterfaceWithCleaver2Algorithm.cc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ namespace detail
8484
static const double kDefaultAlpha = 0.4;
8585
static const double kDefaultAlphaLong = 0.357;
8686
static const double kDefaultAlphaShort = 0.203;
87-
static const double kDefaultScale = 1.0;
87+
static const double kDefaultSamplingRate = 1.0;
8888
static const double kDefaultLipschitz = 0.2;
89-
static const double kDefaultMultiplier = 1.0;
89+
static const double kDefaultFeatureScaling = 1.0;
9090
//static const int kDefaultPadding = 0;
9191
//static const int kDefaultMaxIterations = 1000;
9292
//static const double kDefaultSigma = 1.;
@@ -96,9 +96,9 @@ namespace detail
9696
cleaver2::MeshType mesh_mode;
9797
double alphaLong;
9898
double alphaShort;
99-
double scaling;
99+
double samplingRate;
100100
double lipschitz;
101-
double multiplier;
101+
double featureScaling;
102102
bool verbose;
103103
bool simpleMode;
104104
bool reverseJacobians;
@@ -119,9 +119,9 @@ namespace detail
119119
Cleaver2Impl(const AlgorithmBase* algo, const Cleaver2Parameters& params, FieldHandle sizingField, FieldHandle backgroundMesh) :
120120
algo_(algo), params_(params), inputSizingField_(sizingField), inputBackgroundMesh_(backgroundMesh)
121121
{
122-
LOG_DEBUG("Cleaver 2 parameters: \n\tmesh_mode: {}\n\talphaLong: {}\n\talphaShort: {}\n\tscaling: {}\n\tlipschitz: {}\n\tmultiplier: {}\n\tverbose: {}\n\tsimpleMode: {}",
122+
LOG_DEBUG("Cleaver 2 parameters: \n\tmesh_mode: {}\n\talphaLong: {}\n\talphaShort: {}\n\tsampling_rate: {}\n\tlipschitz: {}\n\tfeature_scaling: {}\n\tverbose: {}\n\tsimpleMode: {}",
123123
params_.mesh_mode, params_.alphaLong, params_.alphaShort,
124-
params_.scaling, params_.lipschitz, params_.multiplier,
124+
params_.samplingRate, params_.lipschitz, params_.featureScaling,
125125
params_.verbose, params_.simpleMode);
126126
}
127127

@@ -429,8 +429,8 @@ namespace detail
429429
sizingField_.reset(cleaver2::SizingFieldCreator::createSizingFieldFromVolume(
430430
volume_.get(),
431431
(float)(1.0 / params_.lipschitz),
432-
(float)params_.scaling,
433-
(float)params_.multiplier,
432+
(float)params_.samplingRate,
433+
(float)params_.featureScaling,
434434
0, // padding--off
435435
(params_.mesh_mode != cleaver2::Regular),
436436
params_.verbose));
@@ -505,11 +505,12 @@ namespace detail
505505

506506
InterfaceWithCleaver2Algorithm::InterfaceWithCleaver2Algorithm()
507507
{
508+
//Cleaver parameters: Scaling = Sampling Rate, Multiplier = Feature Scaling
508509
addParameter(Parameters::Verbose, true);
509510
addParameter(Parameters::SimpleMode, false);
510511
addParameter(Parameters::ReverseJacobians, true);
511-
addParameter(Parameters::VolumeScaling, detail::kDefaultScale);
512-
addParameter(Parameters::VolumeMultiplier, detail::kDefaultMultiplier);
512+
addParameter(Parameters::VolumeScaling, detail::kDefaultSamplingRate);
513+
addParameter(Parameters::VolumeMultiplier, detail::kDefaultFeatureScaling);
513514
addParameter(Parameters::Lipschitz, detail::kDefaultLipschitz);
514515
//addParameter(Parameters::Padding, detail::kDefaultPadding);
515516
addParameter(Parameters::AlphaLong, detail::kDefaultAlphaLong);

src/Core/Algorithms/Field/InterfaceWithCleaver2Algorithm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ namespace Core {
3838
namespace Algorithms {
3939
namespace Fields {
4040

41+
//Cleaver parameters: Scaling = Sampling Rate, Multiplier = Feature Scaling
4142
ALGORITHM_PARAMETER_DECL(Verbose);
4243
ALGORITHM_PARAMETER_DECL(VolumeScaling);
4344
ALGORITHM_PARAMETER_DECL(VolumeMultiplier);

src/Core/Algorithms/Legacy/Fields/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ SET(Core_Algorithms_Legacy_Fields_HEADERS
4747
FieldData/SetFieldData.h
4848
FieldData/SetFieldDataToConstantValue.h
4949
FieldData/SwapFieldDataWithMatrixEntriesAlgo.h
50-
#FieldData/SmoothVecFieldMedian.h
50+
FieldData/SmoothVecFieldMedianAlgo.h
5151
Mapping/BuildMappingMatrixAlgo.h
5252
DomainFields/GetDomainBoundaryAlgo.h
5353
MeshDerivatives/GetFieldBoundaryAlgo.h
@@ -149,7 +149,7 @@ SET(Core_Algorithms_Legacy_Fields_SRCS
149149
#FieldData/ConvertMappingMatrixToFieldData.cc
150150
FieldData/SetFieldData.cc
151151
FieldData/SetFieldDataToConstantValue.cc
152-
#FieldData/SmoothVecFieldMedian.cc
152+
FieldData/SmoothVecFieldMedianAlgo.cc
153153
#FilterFieldData/DilateFieldData.cc
154154
#FilterFieldData/ErodeFieldData.cc
155155
#FilterFieldData/TriSurfPhaseFilter.cc

0 commit comments

Comments
 (0)