Revision 1056

trunk/src/nh99/tpl2cpp.lex (revision 1056)
352 352

  
353 353
    fprintf(fall,"%s","}\n\nvoid model_parameters::preliminary_calculations(void)"
354 354
      "\n{\n");
355
    fprintf(fall,"%s","\n#if defined(USE_ADPVM)\n");
355 356
    fprintf(fall,"%s","\n  admaster_slave_variable_interface(*this);\n");
357
    fprintf(fall,"%s","\n#endif\n");
356 358
  }
357 359
                }
358 360

  
......
392 394
                            }
393 395

  
394 396
SLAVE_SECTION  {
395

  
397
  #if defined(USE_ADPVM)
396 398
  if (pvmslaves_defined)
397 399
  {
398 400
    fprintf(stderr,"%s","Error -- only one pvm slave section allowed\n");
......
407 409
    fprintf(fall,"%s","}\n\nimatrix model_parameters::"
408 410
      "get_slave_assignments(void)\n{\n");
409 411
  }
410

  
412
  #endif
411 413
         }
412 414

  
413 415
<IN_PVM_SLAVE_SECTION>^[ \t].*$ { fprintf(fall,"%s\n",yytext); }
......
3998 4000
      fprintf(fall,"}\n");
3999 4001
      fprintf(fall,"\nvoid model_parameters::preliminary_calculations(void)"
4000 4002
        "{");
4003
      fprintf(fall,"%s","\n#if defined(USE_ADPVM)\n");
4001 4004
      fprintf(fall,"%s","\n  admaster_slave_variable_interface(*this);\n");
4005
      fprintf(fall,"%s","\n#endif\n");
4002 4006
    }
4003 4007

  
4004 4008
    fprintf(fall,"}\n");
trunk/src/df1b2-separable/tpl2rem.lex (revision 1056)
409 409
      }
410 410
    }
411 411
    fprintf(fall,"%s","\nvoid model_parameters::preliminary_calculations(void) \n{\n");
412
    fprintf(fall,"%s","\n  #if defined(USE_ADPVM)\n");
412 413
    fprintf(fall,"%s","\n  admaster_slave_variable_interface(*this);\n");
414
    fprintf(fall,"%s","\n  #endif\n");
413 415
  }
414 416
                }
415 417

  
......
4352 4354
    {
4353 4355
      fprintf(fall,"\nvoid model_parameters::preliminary_calculations(void)"
4354 4356
        "{");
4355
      fprintf(fall,"%s","\n  admaster_slave_variable_interface(*this);\n  }\n");
4357
      fprintf(fall,"%s","\n  #if defined(USE_ADPVM)\n");
4358
      fprintf(fall,"%s","\n  admaster_slave_variable_interface(*this);\n");
4359
      fprintf(fall,"%s","\n  #endif\n");
4360
      fprintf(fall,"%s","\n}\n");
4356 4361
    }
4357 4362

  
4358 4363
    fprintf(fall,"\nmodel_data::~model_data()\n"

Also available in: Unified diff