Changeset 6273


Ignore:
Timestamp:
10/12/10 16:37:43 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added verbosity levels, to be improved

Location:
issm/trunk/src/c
Files:
2 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Makefile.am

    r6238 r6273  
    245245                                        ./shared/Numerics/isnan.h\
    246246                                        ./shared/Numerics/isnan.cpp\
     247                                        ./shared/Numerics/Verbosity.h\
     248                                        ./shared/Numerics/Verbosity.cpp\
    247249                                        ./shared/Numerics/IsInputConverged.cpp\
    248250                                        ./shared/Numerics/GaussPoints.h\
     
    818820                                        ./shared/Dofs/dofsetgen.cpp\
    819821                                        ./shared/Numerics/numerics.h\
     822                                        ./shared/Numerics/Verbosity.h\
     823                                        ./shared/Numerics/Verbosity.cpp\
    820824                                        ./shared/Numerics/IsInputConverged.cpp\
    821825                                        ./shared/Numerics/GaussPoints.h\
  • issm/trunk/src/c/objects/FemModel.cpp

    r6231 r6273  
    2424        /*intermediary*/
    2525        int i;
    26         IoModel* iomodel=NULL;
    2726        int analysis_type;
     27        int  verbosity_level;
     28        bool verbose;
    2829
    2930        /*Initialize internal data: */
     
    4344        for(i=0;i<nummodels;i++)m_ys[i]=NULL;
    4445
    45         /*create datasets for all analyses: */
     46        /*create datasets for all analyses*/
    4647        ModelProcessorx(&this->elements,&this->nodes,&this->vertices,&this->materials,&this->constraints,&this->loads,&this->parameters,IOMODEL,this->solution_type,nummodels,analyses);
     48
     49        /*Shall we verbose?*/
     50        this->parameters->FindParam(&verbosity_level,VerboseEnum); verbose=IsModelProcessorVerbosity(verbosity_level);
    4751
    4852        /*do the post-processing of the datasets to get an FemModel that can actually run analyses: */
    4953        for(i=0;i<nummodels;i++){
    5054
    51                 _printf_("   processing finite element model of analysis %s:\n",EnumToString(analysis_type_list[i]));
     55                if(verbose) _printf_("   processing finite element model of analysis %s:\n",EnumToString(analysis_type_list[i]));
    5256                analysis_type=analysis_type_list[i];
    5357                this->SetCurrentConfiguration(analysis_type);
    5458       
    5559                if(i==0){
    56                         _printf_("      create vertex degrees of freedom\n");
     60                        if(verbose) _printf_("      create vertex degrees of freedom\n");
    5761                        VerticesDofx(vertices,parameters); //only call once, we only have one set of vertices
    5862                }
    5963
    60                 _printf_("      resolve node constraints\n");
     64                if(verbose) _printf_("      resolve node constraints\n");
    6165                SpcNodesx(nodes,constraints,analysis_type);
    6266       
    63                 _printf_("      create nodal degrees of freedom\n");
     67                if(verbose) _printf_("      create nodal degrees of freedom\n");
    6468                NodesDofx(nodes,parameters,analysis_type);
    6569       
    66                 _printf_("      create nodal constraints vector\n");
     70                if(verbose) _printf_("      create nodal constraints vector\n");
    6771                CreateNodalConstraintsx(&m_ys[i],nodes,analysis_type);
    6872
    69                 _printf_("      create node sets\n");
     73                if(verbose) _printf_("      create node sets\n");
    7074                BuildNodeSetsx(&m_nodesets[i], nodes,analysis_type);
    7175
    72                 _printf_("      configuring element and loads\n");
     76                if(verbose) _printf_("      configuring element and loads\n");
    7377                ConfigureObjectsx(elements, loads, nodes, vertices, materials,parameters);
    7478        }
     
    163167
    164168        if(verbose){
    165                 _printf_("   Petsc Options set for analysis type: %s\n",EnumToString(analysis_type));
     169                _printf_("      petsc Options set for analysis type: %s\n",EnumToString(analysis_type));
    166170        }
    167171
  • issm/trunk/src/c/shared/Numerics/numerics.h

    r6014 r6273  
    66#define  _NUMERICS_H_
    77
     8#include "./Verbosity.h"
    89#include "./GaussPoints.h"
    910#include "./isnan.h"
  • issm/trunk/src/c/shared/shared.h

    r3913 r6273  
    22 * \brief: header file for all shared  routines.
    33 */
    4 
    54
    65#ifndef _SHARED_H_
     
    2120#include "Bamg/shared.h"
    2221
    23 
    2422#endif
Note: See TracChangeset for help on using the changeset viewer.