Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/paramin-beta/pvmconstants.cc
[mareframe] / trunk / paramin-beta / pvmconstants.cc Repository:
ViewVC logotype

View of /trunk/paramin-beta/pvmconstants.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 3 months ago) by agomez
File size: 449 byte(s)
Initial version based on Gadget 2.2.00
#include "pvmconstants.h"
#include "gadget.h"

PVMConstants::PVMConstants() {
  stopPVM = 1;
  startPVM = 2;
  taskDied = 3;
  masterSendVar = 4;
  masterSendString = 5;
  masterReceiveData = 6;
  masterSendBound = 7;
  dataEncode = 1;
}

void PVMConstants::setDataEncode(int dc) {
  if (dc == 0 || dc == 1 || dc == 2)
    dataEncode = dc;
  else {
    cerr << "Error in pvmconstants - invalid value for dataencode\n";
    exit(EXIT_FAILURE);
  }
}

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge