New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4779 for branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/EXTERNAL/AGRIF/LIB/WorkWithParameterlist.c – NEMO

Ignore:
Timestamp:
2014-09-19T16:21:37+02:00 (10 years ago)
Author:
rblod
Message:

Update AGRIF internal routines and conv on branch dev_r4765_CNRS_agrif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/EXTERNAL/AGRIF/LIB/WorkWithParameterlist.c

    r2715 r4779  
    4747void Add_GlobalParameter_Var_1(listvar *listin) 
    4848{ 
    49    if ( firstpass == 1 ) 
    50    { 
    51       if ( VariableIsParameter == 1 ) { 
    52       List_GlobalParameter_Var =  AddListvarToListvar(listin,List_GlobalParameter_Var,1); 
    53    } 
     49    if ( VariableIsParameter ) 
     50        List_GlobalParameter_Var =  AddListvarToListvar(listin, List_GlobalParameter_Var, 1); 
    5451   } 
    5552} 
     
    6461void Add_Parameter_Var_1(listvar *listin) 
    6562{ 
    66    listvar *parcours; 
     63    listvar *parcours; 
    6764 
    68    if ( firstpass == 1 && VariableIsParameter == 1 ) 
    69    { 
    70       if ( !List_Parameter_Var ) 
    71       { 
    72          List_Parameter_Var = listin; 
    73       } 
    74       else 
    75       { 
    76          parcours = List_Parameter_Var; 
    77          while (parcours->suiv) parcours=parcours->suiv; 
    78          parcours->suiv = listin; 
    79       } 
    80    } 
     65    if ( !VariableIsParameter )    return; 
     66 
     67    if ( List_Parameter_Var == NULL ) 
     68    { 
     69        List_Parameter_Var = listin; 
     70    } 
     71    else 
     72    { 
     73        parcours = List_Parameter_Var; 
     74        while ( parcours->suiv ) 
     75            parcours = parcours->suiv; 
     76        parcours->suiv = listin; 
     77    } 
    8178} 
    8279 
     
    9289   listvar *parcours; 
    9390 
    94    if ( firstpass == 1 ) 
    95    { 
    96       if ( !List_Dimension_Var ) 
    97       { 
    98          List_Dimension_Var = listin; 
    99       } 
    100       else 
    101       { 
    102          parcours = List_Dimension_Var; 
    103          while (parcours->suiv) parcours=parcours->suiv; 
    104          parcours->suiv = listin; 
    105       } 
    106    } 
     91    if ( List_Dimension_Var == NULL ) 
     92    { 
     93        List_Dimension_Var = listin; 
     94    } 
     95    else 
     96    { 
     97        parcours = List_Dimension_Var; 
     98        while (parcours->suiv) 
     99            parcours = parcours->suiv; 
     100        parcours->suiv = listin; 
     101    } 
    107102} 
Note: See TracChangeset for help on using the changeset viewer.