Changeset 8860a6


Ignore:
Timestamp:
Jul 10, 2012, 1:15:50 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Children:
c676ca
Parents:
a98b86
git-author:
Frederik Heber <heber@…> (07/06/12 18:39:34)
git-committer:
Frederik Heber <heber@…> (07/10/12 13:15:50)
Message:

Extract setup of SCFormIO structure into own function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/bin/mpqc/mpqc.cc

    ra98b86 r8860a6  
    291291  }
    292292
     293  if (options.retrieve("d"))
     294    SCFormIO::set_debug(1);
     295
    293296  // set the working dir
    294297  if (strcmp(options.retrieve("W"),"."))
     
    492495}
    493496
     497/** Sets up indentation and output modes.
     498 *
     499 * \param grp message group
     500 */
     501void setupSCFormIO(
     502    Ref<MessageGrp> &grp
     503    )
     504{
     505  SCFormIO::setindent(ExEnv::outn(), 2);
     506  SCFormIO::setindent(ExEnv::errn(), 2);
     507  SCFormIO::setindent(cout, 2);
     508  SCFormIO::setindent(cerr, 2);
     509
     510  SCFormIO::set_printnode(0);
     511  if (grp->n() > 1)
     512    SCFormIO::init_mp(grp->me());
     513}
     514
    494515int
    495516try_main(int argc, char *argv[])
     
    615636
    616637  // set up output classes
    617   SCFormIO::setindent(ExEnv::outn(), 2);
    618   SCFormIO::setindent(ExEnv::errn(), 2);
    619   SCFormIO::setindent(cout, 2);
    620   SCFormIO::setindent(cerr, 2);
    621 
    622   SCFormIO::set_printnode(0);
    623   if (grp->n() > 1)
    624     SCFormIO::init_mp(grp->me());
    625 
    626   if (options.retrieve("d"))
    627     SCFormIO::set_debug(1);
     638  setupSCFormIO(grp);
    628639
    629640  // initialize timing for mpqc
Note: See TracChangeset for help on using the changeset viewer.