Skip to content

Commit ee902fd

Browse files
committed
Big Reoganization: Old projects in NonCompile
Stuff that we don't currently use a lot will now go in NonCompile You can copy the files to Main and it will work. Currenly sorting out the non-compile of stuff for those projects.
1 parent 617661d commit ee902fd

31 files changed

+255
-349
lines changed

CMake.pl

+218-152
Large diffs are not rendered by default.

CMakeList.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ sub findSubSrcDir
100100
foreach my $dname (@DPts)
101101
{
102102
if ($dname=~/$topDirName\/(.*)\// &&
103-
$dname!~/\/Main\//)
103+
$dname!~/\/Main\// &&
104+
$dname!~/NonCompile/)
104105
{
105106
my $flag=0;
106107
foreach my $exclude (@EXCL)

CMakeSupport.pm

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Simple stuff for CMake
2+
3+
4+
sub getAllMain()
5+
##
6+
## Find the main files
7+
##
8+
{
9+
my $self=shift;
10+
11+
my $cppMain=`ls ./Main/*.cxx 2> /dev/null`;
12+
my @files=split /\s+/,$cppMain;
13+
my @Out;
14+
foreach my $item (@files)
15+
{
16+
if ($item=~/Main\/(\S+)\.cxx/)
17+
{
18+
push(@Out,$1);
19+
}
20+
}
21+
return @Out;
22+
}
23+
24+
25+
26+
1;

Main/combLayer.cxx

-162
This file was deleted.

Main/ess.cxx

-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
#include "defaultConfig.h"
7878
#include "DefUnitsESS.h"
7979
#include "ImportControl.h"
80-
#include "World.h"
8180
#include "makeESS.h"
8281

8382

@@ -123,7 +122,6 @@ main(int argc,char* argv[])
123122
mainSystem::setMaterialsDataBase(IParam);
124123

125124
essSystem::makeESS ESSObj;
126-
World::createOuterObjects(*SimPtr);
127125
ESSObj.build(*SimPtr,IParam);
128126

129127
mainSystem::buildFullSimulation(SimPtr,IParam,Oname);

Main/fullBuild.cxx

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
* File: Main/fullBuild.cxx
55
*
6-
* Copyright (c) 2004-2017 by Stuart Ansell
6+
* Copyright (c) 2004-2020 by Stuart Ansell
77
*
88
* This program is free software: you can redistribute it and/or modify
99
* it under the terms of the GNU General Public License as published by
@@ -77,7 +77,6 @@
7777
#include "makeTS2.h"
7878
#include "chipDataStore.h"
7979
#include "mainJobs.h"
80-
#include "World.h"
8180
#include "Volumes.h"
8281

8382
#include "MemStack.h"
@@ -131,7 +130,6 @@ main(int argc,char* argv[])
131130
setVFlag(IParam.getValue<int>("memStack"));
132131
}
133132

134-
World::createOuterObjects(*SimPtr);
135133
moderatorSystem::makeTS2 TS2Obj;
136134
TS2Obj.build(SimPtr,IParam);
137135

Main/reactor.cxx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
* File: Main/reactor.cxx
55
*
6-
* Copyright (c) 2004-2018 by Stuart Ansell
6+
* Copyright (c) 2004-2020 by Stuart Ansell
77
*
88
* This program is free software: you can redistribute it and/or modify
99
* it under the terms of the GNU General Public License as published by
@@ -115,7 +115,6 @@ main(int argc,char* argv[])
115115
mainSystem::setMaterialsDataBase(IParam);
116116

117117
delftSystem::makeDelft RObj;
118-
World::createOuterObjects(*SimPtr);
119118
RObj.build(*SimPtr,IParam);
120119

121120
// RObj.setSource(*SimPtr,IParam);

Main/t1Real.cxx

-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ main(int argc,char* argv[])
122122

123123

124124
ts1System::makeT1Real T1Obj;
125-
World::createOuterObjects(*SimPtr);
126125
T1Obj.build(*SimPtr,IParam);
127126

128127
mainSystem::buildFullSimulation(SimPtr,IParam,Oname);

Main/bilbau.cxx NonCompiledProjects/bilbau.cxx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
* File: Main/bilbau.cxx
55
*
6-
* Copyright (c) 2004-2018 by Stuart Ansell
6+
* Copyright (c) 2004-2020 by Stuart Ansell
77
*
88
* This program is free software: you can redistribute it and/or modify
99
* it under the terms of the GNU General Public License as published by
@@ -116,7 +116,6 @@ main(int argc,char* argv[])
116116

117117

118118
bibSystem::makeBib BibObj;
119-
World::createOuterObjects(*SimPtr);
120119
BibObj.build(*SimPtr,IParam);
121120
mainSystem::buildFullSimulation(SimPtr,IParam,Oname);
122121

File renamed without changes.
File renamed without changes.

Main/d4c.cxx NonCompiledProjects/d4c.cxx

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ main(int argc,char* argv[])
148148
SimPtr->resetAll();
149149

150150
d4cSystem::makeD4C dObj;
151-
World::createOuterObjects(*SimPtr);
152151
dObj.build(SimPtr,IParam);
153152

154153
SDef::sourceSelection(*SimPtr,IParam);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Main/lens.cxx NonCompiledProjects/lens.cxx

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
* File: Main/lens.cxx
55
*
6-
* Copyright (c) 2004-2016 by Stuart Ansell
6+
* Copyright (c) 2004-2020 by Stuart Ansell
77
*
88
* This program is free software: you can redistribute it and/or modify
99
* it under the terms of the GNU General Public License as published by
@@ -80,7 +80,6 @@
8080
#include "LensSource.h"
8181
#include "FlightLine.h"
8282
#include "FlightCluster.h"
83-
#include "World.h"
8483
#include "LensTally.h"
8584
#include "makeLens.h"
8685

@@ -135,7 +134,6 @@ main(int argc,char* argv[])
135134

136135

137136
lensSystem::makeLens lensObj;
138-
World::createOuterObjects(*SimPtr);
139137
lensObj.build(SimPtr);
140138

141139
mainSystem::buildFullSimulation(SimPtr,IParam,Oname);

Main/linac.cxx NonCompiledProjects/linac.cxx

-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
#include "defaultConfig.h"
7777
#include "DefUnitsESS.h"
7878
#include "ImportControl.h"
79-
#include "World.h"
8079

8180
#include "makeLinac.h"
8281

@@ -123,7 +122,6 @@ main(int argc,char* argv[])
123122
SimPtr->setMCNPversion(IParam.getValue<int>("mcnp"));
124123

125124
essSystem::makeLinac linacObj;
126-
World::createOuterObjects(*SimPtr);
127125
linacObj.build(*SimPtr,IParam);
128126

129127
mainSystem::buildFullSimulation(SimPtr,IParam,Oname);
File renamed without changes.

Main/photonMod.cxx NonCompiledProjects/photonMod.cxx

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ main(int argc,char* argv[])
141141
SimPtr->resetAll();
142142

143143
photonSystem::makePhoton LObj;
144-
World::createOuterObjects(*SimPtr);
145144
LObj.build(SimPtr,IParam);
146145

147146
SimPtr->removeComplements();

Main/photonMod2.cxx NonCompiledProjects/photonMod2.cxx

-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
#include "Matrix.h"
5151
#include "Vec3D.h"
5252
#include "inputParam.h"
53-
#include "Transform.h"
5453
#include "Quaternion.h"
5554
#include "Surface.h"
5655
#include "Quadratic.h"
@@ -76,7 +75,6 @@
7675
#include "DefPhysics.h"
7776
#include "variableSetup.h"
7877
#include "ImportControl.h"
79-
#include "World.h"
8078
#include "SimInput.h"
8179

8280
#include "makePhoton2.h"
@@ -120,7 +118,6 @@ main(int argc,char* argv[])
120118
mainSystem::setMaterialsDataBase(IParam);
121119

122120
photonSystem::makePhoton2 LObj;
123-
World::createOuterObjects(*SimPtr);
124121
LObj.build(*SimPtr,IParam);
125122

126123
mainSystem::buildFullSimulation(SimPtr,IParam,Oname);

Main/photonMod3.cxx NonCompiledProjects/photonMod3.cxx

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ main(int argc,char* argv[])
120120
mainSystem::setMaterialsDataBase(IParam);
121121

122122
photonSystem::makePhoton3 LObj;
123-
World::createOuterObjects(*SimPtr);
124123
LObj.build(*SimPtr,IParam);
125124

126125
mainSystem::buildFullSimulation(SimPtr,IParam,Oname);

Main/saxs.cxx NonCompiledProjects/saxs.cxx

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
* File: Main/saxs.cxx
55
*
6-
* Copyright (c) 2004-2019 by Stuart Ansell
6+
* Copyright (c) 2004-2020 by Stuart Ansell
77
*
88
* This program is free software: you can redistribute it and/or modify
99
* it under the terms of the GNU General Public License as published by
@@ -76,7 +76,6 @@
7676
#include "DefPhysics.h"
7777
#include "variableSetup.h"
7878
#include "ImportControl.h"
79-
#include "World.h"
8079
#include "SimInput.h"
8180
#include "particle.h"
8281
#include "photon.h"
@@ -129,7 +128,6 @@ main(int argc,char* argv[])
129128
mainSystem::setMaterialsDataBase(IParam);
130129

131130
saxsSystem::makeSAXS dObj;
132-
World::createOuterObjects(*SimPtr);
133131
dObj.build(*SimPtr,IParam);
134132

135133
mainSystem::buildFullSimulation(SimPtr,IParam,Oname);

0 commit comments

Comments
 (0)