Skip to content

Commit e9bb25e

Browse files
authored
Merge branch 'master' into sphere_scaling
2 parents 2ba732f + a5e2012 commit e9bb25e

File tree

177 files changed

+1962
-2100
lines changed

Some content is hidden

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

177 files changed

+1962
-2100
lines changed

Superbuild/GLMExternal.cmake

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# For more information, please see: http://software.sci.utah.edu
2-
#
2+
#
33
# The MIT License
4-
#
4+
#
55
# Copyright (c) 2015 Scientific Computing and Imaging Institute,
66
# University of Utah.
7-
#
8-
#
7+
#
8+
#
99
# Permission is hereby granted, free of charge, to any person obtaining a
1010
# copy of this software and associated documentation files (the "Software"),
1111
# to deal in the Software without restriction, including without limitation
1212
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1313
# and/or sell copies of the Software, and to permit persons to whom the
1414
# Software is furnished to do so, subject to the following conditions:
15-
#
15+
#
1616
# The above copyright notice and this permission notice shall be included
17-
# in all copies or substantial portions of the Software.
18-
#
17+
# in all copies or substantial portions of the Software.
18+
#
1919
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2020
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2121
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL

Superbuild/OsprayExternal.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
SET_PROPERTY(DIRECTORY PROPERTY "EP_BASE" ${ep_base})
2828
SET(ospray_GIT_TAG "origin/scirun-build-2.4")
2929

30+
set(ospray_DEPENDENCIES)
31+
LIST(APPEND ospray_DEPENDENCIES GLM_external)
32+
3033
# If CMake ever allows overriding the checkout command or adding flags,
3134
# git checkout -q will silence message about detached head (harmless).
3235
ExternalProject_Add(Ospray_external
@@ -41,6 +44,7 @@ ExternalProject_Add(Ospray_external
4144
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
4245
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON
4346
-DENABLE_OSPRAY_SUPERBUILD:BOOL=ON
47+
-Dglm_DIR:PATH=${GLM_DIR}/cmake/glm
4448
)
4549

4650
ExternalProject_Get_Property(Ospray_external BINARY_DIR)

src/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,12 @@ MACRO(SCIRUN_ADD_LIBRARY library)
558558
# target_compile_options(${library} PRIVATE /W4 /WX)
559559
else()
560560
# TODO:
561-
#target_compile_options(${library} PRIVATE -Wunused-parameter)
562-
#eventually: -Wall -Wextra -pedantic -Werror)
563-
# to fix: -Wunused-parameter
561+
if(APPLE)
562+
target_compile_options(${library} PRIVATE -Wall -Werror -Wunused-parameter -Winfinite-recursion)
563+
#eventually: -Wall -Wextra -pedantic -Werror)
564+
else()
565+
target_compile_options(${library} PRIVATE -Wall -Wunused-parameter)
566+
endif()
564567
endif()
565568

566569
# Set up installer package (Release build only)

src/Core/Algorithms/BrainStimulator/ElectrodeCoilSetupAlgorithm.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ VariableHandle ElectrodeCoilSetupAlgorithm::fill_table(FieldHandle, DenseMatrixH
220220
}
221221

222222

223-
DenseMatrixHandle ElectrodeCoilSetupAlgorithm::make_rotation_matrix(const double angle, const std::vector<double>& normal) const
223+
DenseMatrixHandle ElectrodeCoilSetupAlgorithm::make_rotation_matrix(const std::vector<double>& normal) const
224224
{
225225
DenseMatrixHandle result(new DenseMatrix(3, 3));
226226

@@ -387,7 +387,7 @@ FieldHandle ElectrodeCoilSetupAlgorithm::make_tms(FieldHandle scalp, const std::
387387
coil_vector.push_back(coil_ny[i]);
388388
coil_vector.push_back(coil_nz[i]);
389389

390-
rotation_matrix1 = make_rotation_matrix(angle, coil_vector);
390+
rotation_matrix1 = make_rotation_matrix(coil_vector);
391391

392392
if (angle != 0) /// test it !
393393
{
@@ -609,7 +609,7 @@ boost::tuple<Variable::List, double, double, double> ElectrodeCoilSetupAlgorithm
609609
}
610610

611611

612-
boost::tuple<DenseMatrixHandle, FieldHandle, FieldHandle, VariableHandle> ElectrodeCoilSetupAlgorithm::make_tdcs_electrodes(FieldHandle scalp_mesh, const std::vector<FieldHandle>& elc_coil_proto, const std::vector<double>& elc_prototyp_map, const std::vector<double>& elc_x, const std::vector<double>& elc_y, const std::vector<double>& elc_z, const std::vector<double>& elc_angle_rotation, const std::vector<double>& elc_thickness, VariableHandle table) const
612+
boost::tuple<DenseMatrixHandle, FieldHandle, FieldHandle, VariableHandle> ElectrodeCoilSetupAlgorithm::make_tdcs_electrodes(FieldHandle scalp_mesh, const std::vector<FieldHandle>& elc_coil_proto, const std::vector<double>& elc_prototyp_map, const std::vector<double>& elc_x, const std::vector<double>& elc_y, const std::vector<double>& elc_z, const std::vector<double>& elc_angle_rotation, const std::vector<double>& elc_thickness) const
613613
{
614614
int nr_elc_sponge_triangles = 0, num_valid_electrode_definition = 0, nr_elc_sponge_triangles_on_scalp = 0;
615615
std::vector<double> field_values, field_values_elc_on_scalp;
@@ -688,8 +688,8 @@ boost::tuple<DenseMatrixHandle, FieldHandle, FieldHandle, VariableHandle> Electr
688688
axis.push_back(norm[2]);
689689
double angle = elc_angle_rotation[i];
690690
DenseMatrixHandle rotation_matrix, rotation_matrix1, rotation_matrix2;
691-
rotation_matrix1 = make_rotation_matrix(angle, axis);
692-
if (elc_angle_rotation[i] != 0)
691+
rotation_matrix1 = make_rotation_matrix(axis);
692+
if (angle != 0)
693693
{
694694
rotation_matrix2 = make_rotation_matrix_around_axis(angle, axis);
695695
rotation_matrix = boost::make_shared<DenseMatrix>((*rotation_matrix2) * (*rotation_matrix1));
@@ -1696,7 +1696,7 @@ boost::tuple<VariableHandle, DenseMatrixHandle, FieldHandle, FieldHandle, FieldH
16961696

16971697
if (t1 == t2 && t1 == t3 && t1 == t4 && t1 == t5 && t14 > 0 && t1 > 0)
16981698
{
1699-
boost::tie(elc_sponge_locations, electrodes_field, final_electrodes_field, table_output) = make_tdcs_electrodes(scalp, elc_coil_proto, elc_prototyp_map, elc_x, elc_y, elc_z, elc_angle_rotation, elc_thickness, table_output);
1699+
boost::tie(elc_sponge_locations, electrodes_field, final_electrodes_field, table_output) = make_tdcs_electrodes(scalp, elc_coil_proto, elc_prototyp_map, elc_x, elc_y, elc_z, elc_angle_rotation, elc_thickness);
17001700
valid_tdcs = true;
17011701
}
17021702

src/Core/Algorithms/BrainStimulator/ElectrodeCoilSetupAlgorithm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ namespace BrainStimulator {
9191
static const int TMS_stim_type; /// third ...
9292

9393
Datatypes::DenseMatrixHandle make_rotation_matrix_around_axis(double angle, std::vector<double>& axis_vector) const;
94-
Datatypes::DenseMatrixHandle make_rotation_matrix(const double angle, const std::vector<double>& normal) const;
94+
Datatypes::DenseMatrixHandle make_rotation_matrix(const std::vector<double>& normal) const;
9595
boost::tuple<Datatypes::DenseMatrixHandle, FieldHandle, FieldHandle, VariableHandle> make_tdcs_electrodes(FieldHandle scalp, const std::vector<FieldHandle>& elc_coil_proto,
96-
const std::vector<double>& elc_prototyp_map, const std::vector<double>& elc_x, const std::vector<double>& elc_y, const std::vector<double>& elc_z, const std::vector<double>& elc_angle_rotation, const std::vector<double>& elc_thickness, VariableHandle table) const;
96+
const std::vector<double>& elc_prototyp_map, const std::vector<double>& elc_x, const std::vector<double>& elc_y, const std::vector<double>& elc_z, const std::vector<double>& elc_angle_rotation, const std::vector<double>& elc_thickness) const;
9797
FieldHandle make_tms(FieldHandle scalp, const std::vector<FieldHandle>& elc_coil_proto, const std::vector<double>& coil_prototyp_map, const std::vector<double>& coil_x, const std::vector<double>& coil_y, const std::vector<double>& coil_z, const std::vector<double>& coil_angle_rotation, std::vector<double>& coil_nx, std::vector<double>& coil_ny, std::vector<double>& coil_nz) const;
9898
VariableHandle fill_table(FieldHandle scalp, Datatypes::DenseMatrixHandle locations, const std::vector<FieldHandle>& input) const;
9999
boost::tuple<Variable::List, double, double, double> make_table_row(int i,double x, double y, double z, double nx, double ny, double nz) const;

src/Core/Algorithms/BrainStimulator/ModelGenericCoilAlgorithm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ std::unique_ptr<BaseCoilgen> AlgoSelector(int idx,const AlgorithmBase* scirunAlg
752752
}
753753

754754

755-
AlgorithmOutput ModelTMSCoilAlgorithm::run(const AlgorithmInput& input) const
755+
AlgorithmOutput ModelTMSCoilAlgorithm::run(const AlgorithmInput&) const
756756
{
757757
ModelTMSCoilAlgorithm::Args algoArgs;
758758
algoArgs.current = static_cast<double>(get(Parameters::Current).toDouble())*1e6; ///MD: here is the unit scaling, wire current module input is in [megaA/s]

src/Core/Algorithms/DataIO/ReadMatrix.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ReadMatrixAlgorithm::Outputs ReadMatrixAlgorithm::run(const ReadMatrixAlgorithm:
9696
THROW_ALGORITHM_INPUT_ERROR("Unknown matrix file format");
9797
}
9898

99-
AlgorithmOutput ReadMatrixAlgorithm::run(const AlgorithmInput& input) const
99+
AlgorithmOutput ReadMatrixAlgorithm::run(const AlgorithmInput&) const
100100
{
101101
auto filename = get(Variables::Filename).toFilename().string();
102102
auto file = run(filename);

src/Core/Algorithms/DataIO/TextToTriSurfField.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ MeshHandle TextToTriSurfFieldAlgorithm::run(const std::string& filename)
457457
return MeshHandle();
458458
}
459459

460-
AlgorithmOutput TextToTriSurfFieldAlgorithm::run(const AlgorithmInput& input) const
460+
AlgorithmOutput TextToTriSurfFieldAlgorithm::run(const AlgorithmInput&) const
461461
{
462462
throw 2;
463463
}

src/Core/Algorithms/Describe/DescribeDatatype.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ namespace General {
4141
{
4242
public:
4343
std::string describe(const Datatypes::DatatypeHandle& data) const;
44-
45-
AlgorithmOutput run(const AlgorithmInput& input) const override { return AlgorithmOutput(); }
44+
AlgorithmOutput run(const AlgorithmInput&) const override { return AlgorithmOutput(); }
4645
};
4746

4847
}}}}

src/Core/Algorithms/Legacy/Converter/ConverterAlgo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ bool ConverterAlgo::MatrixToString(Datatypes::MatrixHandle input, Datatypes::Str
790790
}
791791

792792

793-
AlgorithmOutput ConverterAlgo::run(const AlgorithmInput& input) const
793+
AlgorithmOutput ConverterAlgo::run(const AlgorithmInput&) const
794794
{
795795
throw "not implemented";
796796
}

0 commit comments

Comments
 (0)