Ignore:
Timestamp:
08/24/10 11:26:51 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added Inputs::InfinityNorm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Container/Inputs.cpp

    r5103 r5537  
    362362}
    363363/*}}}*/
     364/*FUNCTION Inputs::InfinityNorm{{{1*/
     365double Inputs::InfinityNorm(int enumtype){
     366
     367        /*Output*/
     368        double norm;
     369
     370        /*Get input*/
     371        Input* input=(Input*)this->GetInput(enumtype);
     372
     373        /*Apply ContrainMin: */
     374        if (input){
     375                norm=input->InfinityNorm();
     376        }
     377        else{
     378                norm=0;
     379        }
     380
     381        /*Return output*/
     382        return norm;
     383}
     384/*}}}*/
    364385/*FUNCTION Inputs::GetInput{{{1*/
    365386Input* Inputs::GetInput(int enum_name){
Note: See TracChangeset for help on using the changeset viewer.