Changeset 550 for cpp/frams/_demos


Ignore:
Timestamp:
07/30/16 03:18:42 (4 years ago)
Author:
Maciej Komosinski
Message:

LoggerToStdout? used in geometry tests. PreconfiguredGenetics? moved to execute() (near other init things)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/geometry/geometrytestutils.cpp

    r547 r550  
    88#include "frams/genetics/preconfigured.h"
    99#include <common/virtfile/stdiofile.h>
     10#include <common/loggers/loggertostdout.h>
    1011#include <math.h>
    1112#include <stdio.h>
     
    5455        MiniGenotypeLoader loader(file);
    5556        MiniGenotype *genotype;
    56         PreconfiguredGenetics genetics;
    5757       
    5858        while (genotype = loader.loadNextGenotype())
     
    122122int GeometryTestUtils::execute(const SString header, int argc, char *argv[], void (*test)(Model &))
    123123{
     124        LoggerToStdout messages_to_stdout(LoggerBase::Enable); //comment this object out to mute error/warning messages
     125        StdioFileSystem_autoselect stdiofilesys;
     126        PreconfiguredGenetics genetics;
     127       
    124128        srand(time(NULL));
    125         StdioFileSystem_autoselect stdiofilesys;
    126        
     129
    127130        if ((argc == 3) && (strcmp("-l", argv[1]) == 0))
    128131        {
     
    182185        void (*test)(Model &, const double))
    183186{
     187        LoggerToStdout messages_to_stdout(LoggerBase::Enable); //comment this object out to mute error/warning messages
     188        StdioFileSystem_autoselect stdiofilesys;
     189        PreconfiguredGenetics genetics;
     190       
    184191        srand(time(NULL));
    185         StdioFileSystem_autoselect stdiofilesys;
    186        
     192
    187193        if ((argc == 3) && (strcmp("-l", argv[1]) == 0))
    188194        {
Note: See TracChangeset for help on using the changeset viewer.