Skip to content

Commit c8761ae

Browse files
committed
Missed some merges
1 parent 4a1dd04 commit c8761ae

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

src/fluka/app/mainFluDAG.cpp

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@ int main(int argc, char* argv[]) {
4343
std::string infile = "dagmc.h5m";
4444
std::string dagmc_file = "";
4545

46-
<<<<<<< HEAD
47-
if (argc == 1) { // then its a fluka run
48-
// fluka creates a run dir one lvl higher
49-
infile = "../" + infile;
50-
flukarun = true;
51-
} else if (argc > 2) {
52-
std::cout << "run as main_fludag <facet_file> to produce"
53-
<< " material assignments" << std::endl;
54-
std::cout << "too many arguments provided" << std::endl;
55-
exit(1);
56-
} else { // its a pre process run
57-
infile = argv[1]; // must be the 2nd argument
58-
}
59-
60-
=======
6146
// form the inputs and determine if this is a true calculation or a preprocess run
6247
ProgOptions po("mainfludag: a DAGMC enabled version of FLUKA-CERN");
6348
po.addOpt<std::string>("dagmc", "Path to h5m DAGMC file to proccess", &dagmc_file);
@@ -76,49 +61,27 @@ int main(int argc, char* argv[]) {
7661
}
7762

7863
// test to see if the file exists
79-
>>>>>>> 62c61b02f (Fixed to reflect FLUKA-CERN)
8064
std::ifstream h5mfile(infile.c_str()); // filestream for mesh geom
8165
if (!h5mfile.good()) {
8266
std::cout << "h5m file does not exist" << std::endl;
8367
exit(1);
8468
}
8569

8670
// get the current time
87-
<<<<<<< HEAD
88-
time(&time_before); /* get current time; same as: timer = time(NULL) */
89-
90-
// DAG call to load the file
91-
std::cout << "Loading the faceted geometry file " << infile << "..."
92-
<< std::endl;
93-
error = DAG->load_file(
94-
infile.c_str()); // load the dag file takeing the faceting from h5m
95-
96-
=======
9771
time(&time_before); /* get current time; same as: timer = time(NULL) */
9872

9973
// DAG call to load the file
10074
error = DAG->load_file(infile.c_str()); // load the dag file takeing the faceting from h5m
101-
>>>>>>> 62c61b02f (Fixed to reflect FLUKA-CERN)
10275
if (error != moab::MB_SUCCESS) {
10376
std::cerr << "DAGMC failed to read input file: " << infile << std::endl;
10477
exit(EXIT_FAILURE);
10578
}
10679

10780
time(&time_after);
10881

109-
<<<<<<< HEAD
110-
double seconds = difftime(
111-
time_after, time_before); // get the time in seconds to load file
112-
113-
time_before = time_after; // reset time to now for the next call
114-
115-
std::cout << "Time to load the h5m file = " << seconds << " seconds"
116-
<< std::endl;
117-
=======
11882
double seconds = difftime(time_after, time_before); //get the time in seconds to load file
11983
time_before = time_after; // reset time to now for the next call
12084
std::cout << "Time to load the h5m file = " << seconds << " seconds" << std::endl;
121-
>>>>>>> 62c61b02f (Fixed to reflect FLUKA-CERN)
12285

12386
// DAG call to initialize geometry
12487
// if more than 1 argument provided

0 commit comments

Comments
 (0)