Skip to content

Commit 11c4fac

Browse files
committed
Update to put files in better places
1 parent b592a11 commit 11c4fac

30 files changed

+65
-45
lines changed

Model/essBuild/LOKI.cxx Model/ESSBeam/loki/LOKI.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuild/LOKI.cxx
4+
* File: ESSBeam/loki/LOKI.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*

Model/essBuild/LOKIvariables.cxx Model/ESSBeam/loki/LOKIvariables.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuild/LOKIvariables.cxx
4+
* File: ESSBeam/loki/LOKIvariables.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*
File renamed without changes.

Model/essBuild/VacTank.cxx Model/ESSBeam/loki/VacTank.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuild/VacTank.cxx
4+
* File: ESSBeam/loki/VacTank.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Model/essBuild/NMX.cxx Model/ESSBeam/nmx/NMX.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuild/NMX.cxx
4+
* File: ESSBeam/nmx/NMX.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*

Model/essBuild/NMXvariables.cxx Model/ESSBeam/nmx/NMXvariables.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuild/NMXvariables.cxx
4+
* File: ESSBeam/nmx/NMXvariables.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*

Model/essBuildInc/NMX.h Model/ESSBeam/nmxInc/NMX.h

-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ namespace constructSystem
4242
namespace essSystem
4343
{
4444
class GuideItem;
45-
class LokiHut;
46-
class VacTank;
47-
4845
/*!
4946
\class NMX
5047
\version 1.0

Model/essBuild/Hut.cxx Model/ESSBeam/odin/Hut.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essModel/Hut.cxx
4+
* File: ESSBeam/odin/Hut.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*

Model/essBuild/ODIN.cxx Model/ESSBeam/odin/ODIN.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuild/ODIN.cxx
4+
* File: ESSBeam/odin/ODIN.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*
File renamed without changes.

Model/essBuild/PinHole.cxx Model/ESSBeam/odin/PinHole.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essModel/PinHole.cxx
4+
* File: ESSBeam/odin/PinHole.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*
@@ -268,4 +268,4 @@ PinHole::createAll(Simulation& System,
268268
return;
269269
}
270270

271-
} // NAMESPACE constructSystem
271+
} // NAMESPACE essSystem

Model/essBuild/RentrantBS.cxx Model/ESSBeam/odin/RentrantBS.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essModel/RentrantBS.cxx
4+
* File: ESSBeam/odin/RentrantBS.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*
@@ -285,4 +285,4 @@ RentrantBS::createAll(Simulation& System,
285285
return;
286286
}
287287

288-
} // NAMESPACE constructSystem
288+
} // NAMESPACE essSystem

Model/essBuildInc/ODIN.h Model/ESSBeam/odinInc/ODIN.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuildInc/ODIN.h
4+
* File: ESSBeam/odin/ODIN.h
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*

Model/essBuildInc/PinHole.h Model/ESSBeam/odinInc/PinHole.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: constructInc/PinHole.h
4+
* File: ESSBeam/odin/PinHole.h
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*

Model/essBuildInc/RentrantBS.h Model/ESSBeam/odinInc/RentrantBS.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: constructInc/RentrantBS.h
4+
* File: ESSBeam/odin/RentrantBS.h
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*
File renamed without changes.

Model/essBuild/DetectorTank.cxx Model/ESSBeam/vor/DetectorTank.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuild/DetectorTank.cxx
4+
* File: ESSBeam/vor/DetectorTank.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*
@@ -270,4 +270,4 @@ DetectorTank::createAll(Simulation& System,
270270
}
271271

272272

273-
} // NAMESPACE zoomSystem
273+
} // NAMESPACE essSystem
File renamed without changes.

Model/essBuild/VORvariables.cxx Model/ESSBeam/vor/VORvariables.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*********************************************************************
22
CombLayer : MCNP(X) Input builder
33
4-
* File: essBuild/VORvariables.cxx
4+
* File: ESSBeam/vor/VORvariables.cxx
55
*
66
* Copyright (c) 2004-2015 by Stuart Ansell
77
*
File renamed without changes.
File renamed without changes.
File renamed without changes.

Model/delft/ReactorGrid.cxx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*********************************************************************
2-
CombLayer : MNCPX Input builder
2+
CombLayer : MCNP(X) Input builder
33
44
* File: delft/ReactorGrid.cxx
55
*
6-
* Copyright (c) 2004-2014 by Stuart Ansell
6+
* Copyright (c) 2004-2015 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
@@ -243,7 +243,7 @@ ReactorGrid::getElementNumber(const std::string& Name)
243243
if (Name.size()!=2 && Name.size()!=3)
244244
throw ColErr::InvalidLine(Name,"Name wrong size",Name.size());
245245
std::pair<size_t,size_t> Out;
246-
Out.first=toupper(Name[0])-static_cast<size_t>('A');
246+
Out.first=static_cast<size_t>(std::toupper(Name[0])-std::toupper('A'));
247247
if (!StrFunc::convert(Name.substr(1),Out.second))
248248
throw ColErr::InvalidLine(Name,"Name number not understood");
249249
return Out;

Model/essBuild/BeamMonitor.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ BeamMonitor::createAll(Simulation& System,
302302
const attachSystem::ContainedGroup& CG,
303303
const std::string& CGName)
304304
/*!
305-
Global creation of the hutch
305+
Global creation of the monitor
306306
\param System :: Simulation to add vessel to
307307
\param FC :: Proton beam FixedComp for origin
308308
\param linkIndex :: link point on FC
@@ -323,4 +323,4 @@ BeamMonitor::createAll(Simulation& System,
323323
return;
324324
}
325325

326-
} // NAMESPACE instrumentSystem
326+
} // NAMESPACE essSystem

getMake.pm

+40-7
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ sub new
5252
root=>0,
5353
rootcint=>0,
5454
gtk=>0,
55-
gcov=>0, ## Gcov
55+
gcov=>0, ## Gcov
5656
gsl=>0, ## Gnu scietific lib
5757
regex=>0, ## regex
5858
lua=>0, ## lua
@@ -653,19 +653,24 @@ sub addSubDirLibs
653653
my $dirAll=`ls -d ./$topDirName/*/ 2> /dev/null`;
654654
my @DPts=split /\s+/,$dirAll;
655655
my @subDir;
656-
my @blanklibFlags=("","");
656+
my @blanklibFlags=("");
657657
foreach my $dname (@DPts)
658658
{
659659
if ($dname=~/$topDirName\/(.*)\//)
660660
{
661-
push(@subDir,$1);
662-
push(@blanklibFlags,"");
663-
print STDERR "Found subdir :",$1,"\n";
661+
my $subName=$1;
662+
my $filenames=`ls -d ./$topDirName/$subName/*.cxx 2> /dev/null`;
663+
my @FPts=split /\s+/,$filenames;
664+
if (@FPts)
665+
{
666+
push(@subDir,$subName);
667+
push(@blanklibFlags,"");
668+
print STDERR "Found subdir :",$subName,"\n";
669+
}
664670
}
665671
}
666672

667-
$self->addDirLibs($topDirName,\@subDir,\@subDir,\@blanklibFlags)
668-
if (@subDir);
673+
$self->addDirLibs($topDirName,\@subDir,\@subDir,\@blanklibFlags) if (@subDir);
669674
return;
670675
}
671676

@@ -695,6 +700,34 @@ sub addSubIncDir
695700
return;
696701
}
697702

703+
sub addCombinedDirLib
704+
##
705+
## Add an array of libraries
706+
## and their subdirectories
707+
##
708+
{
709+
my $self=shift;
710+
711+
my $dirName=shift; ## Directory tree name
712+
my $LName=shift; ## Library name
713+
714+
my $Dr=shift; ## Directorie
715+
my $flags=shift; ## Libflag
716+
717+
my @fullLibs;
718+
my @fullNames;
719+
720+
721+
my $index=scalar($self->{LibName});
722+
$self->{LibName}{$LName}=$index;
723+
724+
push(@{$self->{libnames}},$LName);
725+
push(@{$self->{sublibdir}},$dirName."/".$Dr);
726+
push(@{$self->{libflags}},$flags);
727+
push(@{$self->{masterDirList}},$dirName);
728+
return;
729+
}
730+
698731
sub addDirLibs
699732
##
700733
## Add an array of libraries

getMk.pl

+3-13
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,14 @@
103103
$gM->addCoreItems(\@core,\@coreInc);
104104
$gM->addLibs(\@libnames,\@sublibdir,\@libflags);
105105

106-
my @vorInclude = qw( VORInc );
107-
$gM->addSubDirLibs("Model/essBuild");
108-
106+
$gM->addSubDirLibs("Model/ESSBeam");
109107
$gM->addDirLibs("Model",\@modelNames,\@modelLibDir,\@libflags);
110108
$gM->addDirLibs("System",\@systemNames,\@systemLibDir,\@libflags);
111109

112110
$gM->addIncDir(\@incdir);
113111
$gM->addIncSubDir("System",\@systemInclude);
114112
$gM->addIncSubDir("Model",\@modelInclude);
115-
$gM->addSubIncDir("Model/essBuildInc");
116-
# $gM->addIncSubDir("Model/essBuildInc",\@vorInclude);
117-
118-
# my @libnames=("mcnpx","build","funcBase","geometry", 0,1,2,3
119-
# "log","monte","mersenne","poly", 4,5,6,7,
120-
# "process","support","test","lensModel");
121-
122-
123-
# $gM->addDepUnit("bilbau", ["bibBuild","delft","visit","src","physics","input","source","monte","funcBase","log","tally","construct","crystal","transport","scatMat","md5","endf","process","world","work","monte","geometry","mersenne","src","xml","poly","support","weights","global","attachComp","visit","build"]);
113+
$gM->addSubIncDir("Model/ESSBeam");
124114

125115

126116
$gM->addDepUnit("bilbau", ["bibBuild","build","visit","chip","t1Upgrade",
@@ -266,7 +256,7 @@
266256
"scatMat","md5","endf","process","world","work",
267257
"monte","geometry","mersenne","src","xml","poly",
268258
"weights","global","attachComp",
269-
"visit","VOR"]);
259+
"visit"]);
270260

271261
$gM->addDepUnit("sinbad", ["sinbadBuild","visit","src","simMC",
272262
"physics","input",

0 commit comments

Comments
 (0)