Skip to content

Commit b57a6d0

Browse files
authored
Merge branch 'master' into master
2 parents 293d441 + d274993 commit b57a6d0

File tree

186 files changed

+967
-1468
lines changed

Some content is hidden

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

186 files changed

+967
-1468
lines changed

CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,6 @@ add_custom_target(uninstall
6666
# This is for testing purpose.
6767
link_directories(${CMAKE_CURRENT_BINARY_DIR})
6868

69-
################################# OS Specific ##################################
70-
message(STATUS "Operating system: ${CMAKE_SYSTEM_NAME}")
71-
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
72-
CMAKE_POLICY(SET CMP0042 NEW)
73-
set(MACOSX TRUE)
74-
else()
75-
set(MACOSX FALSE)
76-
endif()
77-
7869
################################ CMAKE OPTIONS ##################################
7970
option(WITH_NSDF "Enable NSDF support. Requires hdf5" OFF )
8071

CheckCXXCompiler.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
########################### COMPILER MACROS #####################################
1+
if(COMPILER_IS_TESTED)
2+
return()
3+
endif()
24

5+
########################### COMPILER MACROS #####################################
36
include(CheckCXXCompilerFlag)
47
CHECK_CXX_COMPILER_FLAG( "-std=c++11" COMPILER_SUPPORTS_CXX11 )
58
CHECK_CXX_COMPILER_FLAG( "-std=c++0x" COMPILER_SUPPORTS_CXX0X )
@@ -34,12 +37,11 @@ if(COMPILER_SUPPORT_UNUSED_BUT_SET_VARIABLE_NO_WARN)
3437
endif(COMPILER_SUPPORT_UNUSED_BUT_SET_VARIABLE_NO_WARN)
3538

3639
if(COMPILER_SUPPORTS_CXX11)
37-
message(STATUS "Your compiler supports c++11 features. Enabling it")
3840
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
3941
add_definitions( -DENABLE_CPP11 )
4042
if(APPLE)
4143
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++" )
42-
message(STATUS "NOTE: Making clang to inline more aggresively" )
44+
# message(STATUS "NOTE: Making clang to inline more aggresively" )
4345
add_definitions( -mllvm -inline-threshold=1000 )
4446
endif(APPLE)
4547
else(COMPILER_SUPPORTS_CXX11)
@@ -50,4 +52,4 @@ else(COMPILER_SUPPORTS_CXX11)
5052
")
5153
endif(COMPILER_SUPPORTS_CXX11)
5254

53-
55+
set(COMPILER_IS_TESTED ON)

basecode/Cinfo.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,6 @@ const Cinfo* Cinfo::find( const string& name )
202202
map<string, Cinfo*>::iterator i = cinfoMap().find(name);
203203
if ( i != cinfoMap().end() )
204204
return i->second;
205-
206-
#ifdef RESULT_CHECK
207-
stringstream ss;
208-
ss << "+ " << name << " not found. Available names are " << endl;
209-
ss << mapToString<string, Cinfo*>( cinfoMap() );
210-
dump(ss.str(), "DEBUG");
211-
#endif /* ----- not RESULT_CHECK ----- */
212-
213205
return 0;
214206
}
215207

basecode/Eref.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@
1010
#ifndef _EREF_H
1111
#define _EREF_H
1212

13-
#ifdef CYMOOSE
14-
15-
#include <iostream>
16-
#include <vector>
17-
using namespace std;
18-
19-
class Element;
20-
class Id;
21-
class ObjId;
22-
class MsgDigest;
23-
24-
#endif /* ----- CYMOOSE ----- */
25-
2613
class Eref
2714
{
2815
public:

basecode/SrcFinfo.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@
99
#ifndef _SRC_FINFO_H
1010
#define _SRC_FINFO_H
1111

12-
#ifdef CYMOOSE
13-
14-
#include "../basecode/Finfo.h"
15-
#include "../basecode/header.h"
16-
17-
#endif /* ----- CYMOOSE ----- */
18-
1912
/**
2013
* This set of classes define Message Sources. Their main job is to supply
2114
* a type-safe send operation, and to provide typechecking for it.

basecode/main.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,10 @@
1010
#include "header.h"
1111
#include "SparseMatrix.h"
1212

13-
#ifndef WIN32
14-
#include <sys/time.h>
15-
#else
1613
#include <time.h>
17-
#endif
1814
#include <math.h>
1915
#include <queue>
20-
#ifdef WIN32
21-
#include "../external/xgetopt/XGetopt.h"
22-
#else
2316
#include <unistd.h> // for getopt
24-
#endif
2517
#include "../scheduling/Clock.h"
2618
#include "../msg/DiagonalMsg.h"
2719
#include "../msg/SparseMsg.h"
@@ -93,12 +85,6 @@ extern void mooseBenchmarks( unsigned int option );
9385
unsigned int getNumCores()
9486
{
9587
unsigned int numCPU = 0;
96-
#ifdef WIN_32
97-
SYSTEM_INFO sysinfo;
98-
GetSystemInfo( &sysinfo );
99-
100-
numCPU = sysinfo.dwNumberOfProcessors;
101-
#endif
10288

10389
#ifdef LINUX
10490
numCPU = sysconf( _SC_NPROCESSORS_ONLN );

benchmarks/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
include_directories(../msg)
2-
include_directories(../basecode)
1+
cmake_minimum_required(VERSION 2.8)
2+
3+
include( ${CMAKE_CURRENT_SOURCE_DIR}/../CheckCXXCompiler.cmake )
4+
35
add_library(benchmarks
46
benchmarks.cpp
57
kineticMarks.cpp

benchmarks/kineticMarks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
** See the file COPYING.LIB for the full notice.
88
**********************************************************************/
99

10-
#include "header.h"
10+
#include "../basecode/header.h"
1111
#include "../shell/Shell.h"
1212

1313
/// Small model, long runtime.

biophysics/CMakeLists.txt

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
include_directories(../basecode ../synapse ../utility ../)
2-
include_directories(../external/muparser/include)
1+
cmake_minimum_required(VERSION 2.8)
2+
include(${CMAKE_CURRENT_SOURCE_DIR}/../CheckCXXCompiler.cmake)
33

44
if(WITH_GSL)
55
include_directories(${GSL_INCLUDE_DIRS})
66
endif(WITH_GSL)
77

88
set(BIOPHYSICS_SRCS
9-
IntFire.cpp
10-
SpikeGen.cpp
11-
RandSpike.cpp
12-
CompartmentDataHolder.cpp
13-
CompartmentBase.cpp
14-
Compartment.cpp
15-
SymCompartment.cpp
16-
GapJunction.cpp
17-
ChanBase.cpp
18-
ChanCommon.cpp
19-
HHChannel.cpp
20-
HHChannelBase.cpp
21-
HHChannel2D.cpp
22-
HHGate.cpp
23-
HHGate2D.cpp
24-
HHChannel2D.cpp
25-
CaConcBase.cpp
26-
CaConc.cpp
27-
MgBlock.cpp
28-
Nernst.cpp
29-
Neuron.cpp
30-
ReadCell.cpp
31-
SwcSegment.cpp
32-
ReadSwc.cpp
33-
SynChan.cpp
34-
NMDAChan.cpp
35-
testBiophysics.cpp
36-
IzhikevichNrn.cpp
37-
DifShellBase.cpp
38-
DifShell.cpp
39-
DifBufferBase.cpp
40-
DifBuffer.cpp
41-
MMPump.cpp
42-
Leakage.cpp
43-
VectorTable.cpp
44-
MarkovRateTable.cpp
45-
MarkovChannel.cpp
46-
MatrixOps.cpp
47-
MarkovSolverBase.cpp
48-
MarkovSolver.cpp
49-
VClamp.cpp
50-
Spine.cpp
9+
IntFire.cpp
10+
SpikeGen.cpp
11+
RandSpike.cpp
12+
CompartmentDataHolder.cpp
13+
CompartmentBase.cpp
14+
Compartment.cpp
15+
SymCompartment.cpp
16+
GapJunction.cpp
17+
ChanBase.cpp
18+
ChanCommon.cpp
19+
HHChannel.cpp
20+
HHChannelBase.cpp
21+
HHChannel2D.cpp
22+
HHGate.cpp
23+
HHGate2D.cpp
24+
HHChannel2D.cpp
25+
CaConcBase.cpp
26+
CaConc.cpp
27+
MgBlock.cpp
28+
Nernst.cpp
29+
Neuron.cpp
30+
ReadCell.cpp
31+
SwcSegment.cpp
32+
ReadSwc.cpp
33+
SynChan.cpp
34+
NMDAChan.cpp
35+
testBiophysics.cpp
36+
IzhikevichNrn.cpp
37+
DifShellBase.cpp
38+
DifShell.cpp
39+
DifBufferBase.cpp
40+
DifBuffer.cpp
41+
MMPump.cpp
42+
Leakage.cpp
43+
VectorTable.cpp
44+
MarkovRateTable.cpp
45+
MarkovChannel.cpp
46+
MatrixOps.cpp
47+
MarkovSolverBase.cpp
48+
MarkovSolver.cpp
49+
VClamp.cpp
50+
Spine.cpp
5151
)
5252

5353
if(WITH_GSL)

biophysics/CaConc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
** See the file COPYING.LIB for the full notice.
88
**********************************************************************/
99

10-
// #include <cfloat>
11-
#include "header.h"
10+
#include "../basecode/header.h"
1211
#include "CaConcBase.h"
1312
#include "CaConc.h"
1413

0 commit comments

Comments
 (0)