-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader.cpp
More file actions
50 lines (41 loc) · 1.37 KB
/
loader.cpp
File metadata and controls
50 lines (41 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************
*
* DESCRIPTION: CLASS SimLoader
*
* AUTHOR: Amir Barylko & Jorge Beyoglonian
* Version 2: Daniel Rodriguez.
* Version 3: Alejandro Troccoli
*
* EMAIL: mailto://amir@dc.uba.ar
* mailto://jbeyoglo@dc.uba.ar
* mailto://drodrigu@dc.uba.ar
* mailto://atroccol@dc.uba.ar
*
* DATE: 27/06/1998
* DATE: 11/04/1999 (v2)
* DATE: 29/08/2000 (v3)
*
*******************************************************************/
#include "loader.h"
#include "mpi.h"
using namespace std;
/*******************************************************************
* Function Name: openCommChanel
* Opens the communications channel. Gets the machine ID
********************************************************************/
SimLoader &SimLoader::openCommChanel(){
//Init MPI.If not start up machine, this will update
//the command line arguments
physicalCommInit(©Argc , ©Argv);
machineID = physicalCommGetId();
static_cast<StandAloneLoader*>(loader())->readCommandLine(argc, argv);
return *instance;
}
/*******************************************************************
* Function Name: closeCommChanel
* Opens the communications channel. Gets the machine ID
********************************************************************/
SimLoader &SimLoader::closeCommChanel(){
MPI_Finalize();
return *instance;
}