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.
WorkWithParameterlist.c in trunk/AGRIF/LIB – NEMO

source: trunk/AGRIF/LIB/WorkWithParameterlist.c @ 898

Last change on this file since 898 was 774, checked in by rblod, 17 years ago

Update Agrif, see ticket:#39

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.4 KB
RevLine 
[396]1/******************************************************************************/
2/*                                                                            */
3/*     CONV (converter) for Agrif (Adaptive Grid Refinement In Fortran)       */
4/*                                                                            */
[663]5/* Copyright or   or Copr. Laurent Debreu (Laurent.Debreu@imag.fr)            */
6/*                        Cyril Mazauric (Cyril_Mazauric@yahoo.fr)            */
[530]7/* This software is governed by the CeCILL-C license under French law and     */
8/* abiding by the rules of distribution of free software.  You can  use,      */
9/* modify and/ or redistribute the software under the terms of the CeCILL-C   */
10/* license as circulated by CEA, CNRS and INRIA at the following URL          */
11/* "http://www.cecill.info".                                                  */
[396]12/*                                                                            */
[530]13/* As a counterpart to the access to the source code and  rights to copy,     */
14/* modify and redistribute granted by the license, users are provided only    */
15/* with a limited warranty  and the software's author,  the holder of the     */
16/* economic rights,  and the successive licensors  have only  limited         */
17/* liability.                                                                 */
[396]18/*                                                                            */
[530]19/* In this respect, the user's attention is drawn to the risks associated     */
20/* with loading,  using,  modifying and/or developing or reproducing the      */
21/* software by the user in light of its specific status of free software,     */
22/* that may mean  that it is complicated to manipulate,  and  that  also      */
23/* therefore means  that it is reserved for developers  and  experienced      */
24/* professionals having in-depth computer knowledge. Users are therefore      */
25/* encouraged to load and test the software's suitability as regards their    */
26/* requirements in conditions enabling the security of their systems and/or   */
27/* data to be ensured and,  more generally, to use and operate it in the      */
28/* same conditions as regards security.                                       */
[396]29/*                                                                            */
[530]30/* The fact that you are presently reading this means that you have had       */
31/* knowledge of the CeCILL-C license and that you accept its terms.           */
[396]32/******************************************************************************/
[774]33/* version 1.7                                                                */
[530]34/******************************************************************************/
[396]35#include <stdio.h>
36#include <stdlib.h>
37#include <string.h>
38#include "decl.h"
39
40/******************************************************************************/
[663]41/*                       Add_GlobalParameter_Var_1                            */
[396]42/******************************************************************************/
43/*  This subroutines is used to add the variable defined in common in the     */
44/******************************************************************************/
45/*                                                                            */
46/******************************************************************************/
[663]47void Add_GlobalParameter_Var_1(listvar *listin)
[396]48{
49   if ( firstpass == 1 )
50   {
[663]51      if ( VariableIsParameter == 1 ) List_GlobalParameter_Var =
52                         AddListvarToListvar(listin,List_GlobalParameter_Var,1);
53   }
54}
55
56/******************************************************************************/
57/*                       Add_Parameter_Var_1                                  */
58/******************************************************************************/
59/*  This subroutines is used to add the variable defined in common in the     */
60/******************************************************************************/
61/*                                                                            */
62/******************************************************************************/
63void Add_Parameter_Var_1(listvar *listin)
64{
65   listvar *parcours;
66
67   if ( firstpass == 1 && VariableIsParameter == 1 )
68   {
69      if ( !List_Parameter_Var )
[396]70      {
[663]71         List_Parameter_Var = listin;
[396]72      }
73      else
74      {
[663]75         parcours = List_Parameter_Var;
[396]76         while (parcours->suiv) parcours=parcours->suiv;
77         parcours->suiv = listin;
78      }
79   }
80}
81
82/******************************************************************************/
[663]83/*                       Add_Dimension_Var_1                                  */
[396]84/******************************************************************************/
85/*  This subroutines is used to add the variable defined in common in the     */
86/******************************************************************************/
87/*                                                                            */
88/******************************************************************************/
[663]89void Add_Dimension_Var_1(listvar *listin)
[396]90{
91   listvar *parcours;
[663]92
93   if ( firstpass == 1 )
[396]94   {
[663]95      if ( !List_Dimension_Var )
[396]96      {
[663]97         List_Dimension_Var = listin;
[396]98      }
99      else
100      {
[663]101         parcours = List_Dimension_Var;
102         while (parcours->suiv) parcours=parcours->suiv;
103         parcours->suiv = listin;
[396]104      }
105   }
106}
Note: See TracBrowser for help on using the repository browser.