[1901] | 1 | /******************************************************************************/ |
---|
| 2 | /* */ |
---|
| 3 | /* CONV (converter) for Agrif (Adaptive Grid Refinement In Fortran) */ |
---|
| 4 | /* */ |
---|
| 5 | /* Copyright or or Copr. Laurent Debreu (Laurent.Debreu@imag.fr) */ |
---|
| 6 | /* Cyril Mazauric (Cyril_Mazauric@yahoo.fr) */ |
---|
| 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". */ |
---|
| 12 | /* */ |
---|
| 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. */ |
---|
| 18 | /* */ |
---|
| 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. */ |
---|
| 29 | /* */ |
---|
| 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. */ |
---|
| 32 | /******************************************************************************/ |
---|
| 33 | /* version 1.7 */ |
---|
| 34 | /******************************************************************************/ |
---|
| 35 | #include <stdio.h> |
---|
| 36 | #include <stdlib.h> |
---|
| 37 | #include <string.h> |
---|
| 38 | #include "decl.h" |
---|
| 39 | |
---|
| 40 | /******************************************************************************/ |
---|
| 41 | /* Add_GlobalParameter_Var_1 */ |
---|
| 42 | /******************************************************************************/ |
---|
| 43 | /* This subroutines is used to add the variable defined in common in the */ |
---|
| 44 | /******************************************************************************/ |
---|
| 45 | /* */ |
---|
| 46 | /******************************************************************************/ |
---|
| 47 | void Add_GlobalParameter_Var_1(listvar *listin) |
---|
| 48 | { |
---|
| 49 | if ( firstpass == 1 ) |
---|
| 50 | { |
---|
[2715] | 51 | if ( VariableIsParameter == 1 ) { |
---|
| 52 | List_GlobalParameter_Var = AddListvarToListvar(listin,List_GlobalParameter_Var,1); |
---|
[1901] | 53 | } |
---|
[2715] | 54 | } |
---|
[1901] | 55 | } |
---|
| 56 | |
---|
| 57 | /******************************************************************************/ |
---|
| 58 | /* Add_Parameter_Var_1 */ |
---|
| 59 | /******************************************************************************/ |
---|
| 60 | /* This subroutines is used to add the variable defined in common in the */ |
---|
| 61 | /******************************************************************************/ |
---|
| 62 | /* */ |
---|
| 63 | /******************************************************************************/ |
---|
| 64 | void Add_Parameter_Var_1(listvar *listin) |
---|
| 65 | { |
---|
| 66 | listvar *parcours; |
---|
| 67 | |
---|
| 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 | } |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | /******************************************************************************/ |
---|
| 84 | /* Add_Dimension_Var_1 */ |
---|
| 85 | /******************************************************************************/ |
---|
| 86 | /* This subroutines is used to add the variable defined in common in the */ |
---|
| 87 | /******************************************************************************/ |
---|
| 88 | /* */ |
---|
| 89 | /******************************************************************************/ |
---|
| 90 | void Add_Dimension_Var_1(listvar *listin) |
---|
| 91 | { |
---|
| 92 | listvar *parcours; |
---|
| 93 | |
---|
| 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 | } |
---|
| 107 | } |
---|