Nemo  2.3.46
output.h File Reference
#include <cstdlib>

Go to the source code of this file.

Functions

void message (const char *message,...)
 
void warning (const char *message,...)
 
int error (const char *message,...)
 
void fatal (const char *message,...)
 

Variables

bool SILENT_RUN
 

Detailed Description

Id
output.h,v 1.8 2015-07-13 08:52:58 fred Exp

Nemo2

Copyright (C) 2006-2015 Frederic Guillaume frede.nosp@m.ric..nosp@m.guill.nosp@m.aume.nosp@m.@ieu..nosp@m.uzh..nosp@m.ch

This file is part of Nemo

Nemo is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Nemo is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

created on

Date
08.09.05
Author
fred

Function Documentation

int error ( const char *  message,
  ... 
)

Referenced by LifeCycleEvent::attach_trait(), LCE_Disperse_base::checkBackwardDispersalMatrix(), LCE_Disperse_base::checkForwardDispersalMatrix(), TMatrix::divide(), BinaryDataLoader::extractPop(), FHPedigreeReader::FHread(), TTNeutralGenesFH::FHread(), TTDeletMutBitstrFH::FHread(), BinaryDataSaver::finish(), LCE_Cross::generatePedigree(), tstring::getBlock(), TMatrix::getColumnView(), TMatrix::getRowView(), Individual::init(), StatServices::init(), SimRunner::init(), Metapop::init(), SimRunner::init_components(), LCE_StatServiceNotifier::loadStatServices(), IndFactory::makePrototype(), TMatrix::minus(), TMatrix::multi(), FHLogWriter::open_logfile4writing(), Individual::operator=(), ParamManager::param_consistency_check(), Param::parseArgument(), Param::parseTemporalArgument(), TMatrix::plus(), BinaryDataSaver::printData(), SimRunner::printLog(), SimRunner::printLogHeader(), IndFactory::recycle(), Patch::remove(), tstring::removeEnclosingChar(), GeneticMap::reset_tables(), TProtoNeutralGenes::retrieve_data(), TProtoDeletMutations_bitstring::retrieve_data(), Metapop::retrieve_data(), SimRunner::run_event(), SimRunner::runPostExec(), TMatrix::set(), LCE_Selection_base::set_fit_model(), LCE_Selection_base::set_local_optima(), LCE_Patch_Extinction::set_matrix_param(), ParamSet::set_param(), LCE_Selection_base::set_param_rate_of_change(), FileHandler::set_path(), LCE_Selection_base::set_sel_model(), ParamManager::setArgString(), LCE_Disperse_base::setBaseParameters(), LCE_Disperse_base::setBasicLatticeMatrix(), TProtoQuanti::setContinuousMutationModel(), TProtoQuanti::setDiallelicMutationModel(), LCE_Disperse_base::setDispMatrix(), LCE_Breed_base::setFecundity(), TTProtoWithMap::setGeneticMapParameters(), LCE_Disperse_base::setIsland_PropagulePool_Matrix(), LCE_Disperse_base::setLatticeMatrix(), TProtoQuanti::setMutationParameters(), LCE_Breed_Selection::setNonSelectedTraitTable(), TTProtoWithMap::setNumLociPerChromosome(), LCE_QuantiInit::setParameters(), LCE_NtrlInit::setParameters(), LCE_Disperse_ConstDisp::setParameters(), LCE_Patch_Extinction::setParameters(), LCE_Breed_Disperse::setParameters(), LCE_Disperse_EvolDisp::setParameters(), TProtoNeutralGenes::setParameters(), LCE_Breed_Selection::setParameters(), LCE_Selection_base::setParameters(), LCE_Init_BDMI::setParameters(), LCE_Init_BDMI::setPatchFreq(), Metapop::setPopulationParameters(), LCE_Selection_base::setSelectionMatrix(), TProtoDeletMutations_bitstring::setSelectionParameters(), LCE_Breed_base::setSexRatio(), setSpatialMatrix(), Param::update(), LCE_Disperse_base::updateDispMatrix(), and LCE_Resize::updateParameters().

74 {
75  va_list(ap);
76 
77  std::cerr<<"***ERROR*** ";
78 
79  va_start(ap, str);
80 #ifdef _R_OUTPUT_
81  REvprintf(str, ap);
82 #else
83  vfprintf(stderr,str, ap);
84 #endif
85  va_end(ap);
86 
87  return 0;
88 }
void fatal ( const char *  message,
  ... 
)

References MPIenv::abort().

Referenced by tstring::__get_block(), GeneticMap::addTrait(), Individual::addTrait(), Individual::create(), Individual::createTrait(), LCE_Disperse_ConstDisp::execute(), LCE_Breed_Disperse::execute(), LCE_Resize::execute(), LCE_Breed_Selection_Disperse::execute(), BinaryStorageBuffer::extend_buff(), BinaryDataLoader::extractOffsetTable(), BinaryDataLoader::extractPop(), FHPedigreeReader::FHread(), TTNeutralGenesFH::FHread(), TTDeletMutBitstrFH::FHread(), LCE_StatFH::FHwrite(), TTBDMI_FH::FHwrite(), TTWolbachiaFH::FHwrite(), TTQuantiFH::FHwrite(), TTDeletMutBitstrFH::FHwrite(), TTQFreqExtractor::FHwrite(), LCE_SelectionFH::FHwrite(), MPFileHandler::FHwrite(), TMatrix::get(), ParamSet::get_param(), Param::getArgumentFromFile(), tstring::getBlock(), ParamsParser::getParameters(), Metapop::getPatchPtr(), Individual::getTrait(), StatHandlerBase::init(), FileServices::init(), LifeCycleEvent::init(), TTNeutralGenes::init(), TTDeletMutations_bitstring::init(), TT_BDMI::init(), TProtoNeutralGenes::loadFileServices(), LCE_Selection_base::loadFileServices(), Metapop::loadPopFromBinarySource(), Metapop::loadPopFromTraitFile(), Metapop::loadSourcePopulation(), main(), LCE_Breed_Selection::makeOffspringWithSelection(), IndFactory::makePrototype(), Individual::operator=(), Param::parse_matrix(), BinaryDataSaver::printData(), BinaryDataSaver::printHeader(), LCE_StatFH::PrintStat_byGen(), FileParser::read(), BinaryFileParser::read(), BinaryStorageBuffer::read(), StreamParser::readArguments(), StreamParser::readUntilCharacter(), LCE_Resize::removeDesignatedPatch(), SimRunner::run(), BinaryStorageBuffer::set_buff(), ParamManager::setArgString(), LCE_SelectionSH::setDataTable(), TTQuantiSH::setDataTables(), TProtoQuanti::setDiallelicMutationModel(), ParamManager::setFilename(), TTDeletMutBitstrSH::setLethalEquivalents(), GeneticMap::setLookupTable(), LCE_StatServiceNotifier::setOccurence(), StatServices::setOccurrences(), LCE_QuantiInit::setParameters(), TProtoBDMI::setParameters(), TProtoQuanti::setParameters(), TTQuantiSH::setStats(), StatRecorder< S >::setVal(), ParamManager::stripFormatString(), GeneticMap::unregisterTrait(), LCE_Resize::updatePatchCapacities(), TTNeutralGenesFH::write_freq(), TTNeutralGenesFH::write_Fst_i(), TTNeutralGenesFH::write_FSTAT(), TTNeutralGenesFH::write_GENEPOP(), TTNeutralGenesFH::write_TAB(), and TTNeutralGenesFH::write_varcompWC().

91 {
92  va_list(ap);
93 
94  std::cerr<<"***ERROR*** ";
95 
96  va_start(ap, str);
97 #ifdef _R_OUTPUT_
98  REvprintf(str, ap);
99 #else
100  vfprintf(stderr,str,ap);
101 #endif
102  va_end(ap);
103 
104  MPIenv::abort(1);
105 }
static void abort(int i)
Definition: MPImanager.cc:60
void message ( const char *  message,
  ... 
)

References SILENT_RUN.

Referenced by SimBuilder::build_currentParams(), IndFactory::clearPrototype(), SimRunner::Cycle(), LCE_ParamUpdaterNotifier::execute(), LCE_Regulation::execute(), LCE_FileServicesNotifier::execute(), LCE_Aging::execute(), LCE_Disperse_ConstDisp::execute(), LCE_Patch_Extinction::execute(), LCE_StatServiceNotifier::execute(), LCE_Cross::execute(), LCE_Breed_Disperse::execute(), LCE_Disperse_EvolDisp::execute(), LCE_Breed_Wolbachia::execute(), LCE_Breed_Selection::execute(), LCE_Resize::execute(), LCE_Breed_Selection_Disperse::execute(), LCE_Breed::execute(), BinaryDataLoader::extractPop(), FHPedigreeReader::FHread(), TTDeletMutBitstrFH::FHread(), LCE_StatFH::FHwrite(), TTDeletMutBitstrFH::FHwrite(), FileServices::init(), SimRunner::init_components(), SimRunner::init_random_seed(), Metapop::loadSourcePopulation(), IndFactory::makePrototype(), StatServices::notify(), ParamsParser::parse(), BinaryDataSaver::printData(), BinaryDataSaver::printHeader(), FileParser::read(), StreamParser::read(), SimRunner::Replicate_LOOP(), SimRunner::reset(), SimRunner::reset_services(), Metapop::retrieve_data(), SimRunner::run(), SimRunner::runPostExec(), TProtoQuanti::set_mutation_matrix_decomposition(), TProtoQuanti::setContinuousMutationModel(), LCE_Disperse_base::setLatticeMatrix(), TProtoBDMI::setParameters(), Metapop::setPopulation(), LCE_Disperse_base::setReducedDispMatrix(), MPStatHandler::setStatRecorders(), TTQuantiSH::setStatRecorders(), TTBDMI_SH::setStatRecorders(), TTDeletMutBitstrSH::setStatRecorders(), TTNeutralGenesSH::setStatRecorders(), LCE_Disperse_base::setSteppingStone1DMatrix(), StatRecorder< S >::setVal(), TTQuanti::show_up(), TTNeutralGenes::show_up(), Param::show_up(), ParamSet::show_up(), TMatrix::show_up(), DataTable< unsigned int >::show_up(), Metapop::show_up(), Individual::show_up(), Patch::show_up(), Metapop::store_data(), BinaryDataSaver::storeData(), TTNeutralGenesFH::write_freq(), TTNeutralGenesFH::write_Fst_i(), TTNeutralGenesFH::write_FSTAT(), TTNeutralGenesFH::write_GENEPOP(), TTNeutralGenesFH::write_TAB(), TTNeutralGenesFH::write_varcompWC(), Metapop::~Metapop(), SimBuilder::~SimBuilder(), and SimRunner::~SimRunner().

41 {
42 
43  if(SILENT_RUN) return;
44 
45  va_list(ap);
46 
47  va_start(ap, message);
48 #ifdef _R_OUTPUT_
49  Rvprintf(message, ap);
50 #else
51  vprintf(message,ap);
52 #endif
53  va_end(ap);
54 }
void message(const char *message,...)
Definition: output.cc:40
bool SILENT_RUN
Definition: output.cc:37
void warning ( const char *  message,
  ... 
)

References SILENT_RUN.

Referenced by TTQuantiSH::addCovarPerPatch(), TTQuantiSH::addEigen(), TTQuantiSH::addEigenPerPatch(), TTQuantiSH::addEigenValues(), TTQuantiSH::addEigenValuesPerPatch(), TTQuantiSH::addEigenVect1(), TTQuantiSH::addEigenVect1PerPatch(), LCE_Cross::execute(), LCE_Breed_Wolbachia::execute(), LCE_Breed_Selection::execute(), LCE_Resize::execute(), LCE_Breed::execute(), BinaryDataLoader::extractPop(), Metapop::fillPopulationFromSource(), LCE_Cross::generatePedigree(), Param::getMatrix(), Param::getVariableMatrix(), LCE_StatFH::ifExist(), FileHandler::ifExist(), FileServices::init(), TProtoNeutralGenes::loadFileServices(), Param::parseArgument(), Individual::reset(), SimRunner::run(), LCE_Cross::sampleWithinPop(), FileHandler::set_path(), LCE_Selection_base::set_sel_model(), LCE_Disperse_base::setBaseParameters(), TProtoQuanti::setContinuousMutationModel(), ParamManager::setFilename(), TTProtoWithMap::setGeneticMapParameters(), LCE_QuantiInit::setParameters(), LCE_Patch_Extinction::setParameters(), Metapop::setPatchCapacities(), Metapop::setPopulation(), Metapop::setPopulationFromSource(), Metapop::setPopulationFromSourceInPreserveMode(), TTQuantiSH::setStats(), UpdaterServices::update_components(), LCE_Resize::updateParameters(), TTNeutralGenesFH::write_freq(), TTNeutralGenesFH::write_Fst_i(), and TTNeutralGenesFH::write_varcompWC().

57 {
58  if(SILENT_RUN) return;
59 
60  va_list(ap);
61 
62  std::cout<<"\n>>>> WARNING::";
63 
64  va_start(ap, str);
65 #ifdef _R_OUTPUT_
66  Rvprintf(str, ap);
67 #else
68  vprintf(str,ap);
69 #endif
70  va_end(ap);
71 }
bool SILENT_RUN
Definition: output.cc:37

Variable Documentation

bool SILENT_RUN

Referenced by SimRunner::init(), message(), and warning().


Generated for Nemo v2.3.0 by  doxygen 1.8.8 --
Catalogued on GSR