Ignore:
Timestamp:
03/04/10 09:31:08 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added Misfit 3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/ParameterInputs.cpp

    r3053 r3180  
    183183
    184184        return ug;
     185}
     186/*}}}*/
     187/*FUNCTION ParameterInputs::IsPresent(char* name,char* string) {{{1*/
     188int ParameterInputs::IsPresent(char* name){
     189
     190        /*Intermediary*/
     191        int i;
     192        Input* input=NULL;
     193
     194        /*Go through dataset, and figure out if the input is present*/
     195        for(i=0;i<dataset->Size();i++){
     196                input=(Input*)dataset->GetObjectByOffset(i);
     197                if (input->IsPresent(name)) return 1;
     198        }
     199
     200        /*Input not found... return 0*/
     201        return 0;
    185202}
    186203/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.