예제 #1
0
int EIOPartReader::openPartitioning(int& part)
{
  int i;
  me = part;
  sprintf(newdir, "%s/partitioning.%d", meshdir, parts);

  openStreams();

  // Read header
  fstream& str = meshFileStream[HEADER];
  str >> nodeCount;
  str >> sharedNodeCount;
  str >> elementCount;
  str >> boundaryElementCount;
  str >> elementTypes;
  
  elementTypeTags = new int[elementTypes];
  elementTypeCount = new int[elementTypes];

  for(i = 0; i < elementTypes; ++i)
    {
      int etype, ecount;
      str >> etype >> ecount;
      elementTypeTags[i] = etype;
      elementTypeCount[i] = ecount;
    }

  return 0;
}
예제 #2
0
int EIOPartWriter::
activatePart(int part)
{
  me = part;
  openStreams();
  return 0;
}
예제 #3
0
파일: winmain.c 프로젝트: hemmecke/aldor
/* Call the Aldor compiler passing the right arguments. */
void
callCompiler(void)
{
    int         argc;
    String *    argv;

    hParent = (HWND) pfcLParam();
    argv = &cmdLine;
    /* Windows pass arguments in a single string. osFixCmdLine() breaks
     * them and sets "argc", "argv".
     */
    osFixCmdLine(&argc, &argv);
    openStreams();

    if (!SetJmp(winExitBuf))
        compCmd(argc, argv);    /* <------- */
    else
        return;
        
    if (cmdHasInteractiveOption(argc, argv))
           wglStart(pfcHMainWnd(), argc, argv);
    else
           winaxlExit(0);
}