[mareframe] Annotation of /trunk/paramin-beta/pvmconstants.cc
Annotation of /trunk/paramin-beta/pvmconstants.cc
Parent Directory
| Revision Log
Revision 1 -
(view)
(download)
1 : |
agomez |
1 |
#include "pvmconstants.h" |
2 : |
|
|
#include "gadget.h"
|
3 : |
|
|
|
4 : |
|
|
PVMConstants::PVMConstants() {
|
5 : |
|
|
stopPVM = 1;
|
6 : |
|
|
startPVM = 2;
|
7 : |
|
|
taskDied = 3;
|
8 : |
|
|
masterSendVar = 4;
|
9 : |
|
|
masterSendString = 5;
|
10 : |
|
|
masterReceiveData = 6;
|
11 : |
|
|
masterSendBound = 7;
|
12 : |
|
|
dataEncode = 1;
|
13 : |
|
|
}
|
14 : |
|
|
|
15 : |
|
|
void PVMConstants::setDataEncode(int dc) {
|
16 : |
|
|
if (dc == 0 || dc == 1 || dc == 2)
|
17 : |
|
|
dataEncode = dc;
|
18 : |
|
|
else {
|
19 : |
|
|
cerr << "Error in pvmconstants - invalid value for dataencode\n";
|
20 : |
|
|
exit(EXIT_FAILURE);
|
21 : |
|
|
}
|
22 : |
|
|
}
|
|