1 //======================================================================
2 // variable 1 - var[0] , i.e variables are zero based
3 //======================================================================
4 int USERD_get_gold_variable_info
6 char **var_description,
18 Info << "Entering: USERD_get_gold_variable_info" << endl
22 label offset = Num_variables - nSprayVariables;
25 for (label n=0; n<offset; n++)
27 if (isScalar[var2field[n]])
29 var_type[n] = Z_SCALAR;
30 var_classify[n] = Z_PER_ELEM;
31 var_complex[n] = FALSE;
36 fieldNames[var2field[n]].c_str(),
42 // ... and then vectors
43 for (label n=0; n<offset; n++)
45 if (isVector[var2field[n]])
47 var_type[n] = Z_VECTOR;
48 var_classify[n] = Z_PER_ELEM;
49 var_complex[n] = FALSE;
54 fieldNames[var2field[n]].c_str(),
60 // ... and tensors (NB! all tensors are treated as asymmetric)
61 for (label n=0; n<offset; n++)
63 if (isTensor[var2field[n]])
65 var_type[n] = Z_TENSOR9;
66 var_classify[n] = Z_PER_ELEM;
67 var_complex[n] = FALSE;
72 fieldNames[var2field[n]].c_str(),
78 if (Numparts_available > nPatches+1)
81 label Ns = lagrangianScalarNames.size();
83 for (label n=0; n<Ns; n++)
85 var_type[offset + n] = Z_SCALAR;
86 var_classify[offset + n] = Z_PER_ELEM;
87 var_complex[offset + n] = FALSE;
88 var_timeset[offset + n] = 1;
89 word name = parcelPrepend + lagrangianScalarNames[n];
92 var_description[offset + n],
98 for (label n=0; n<lagrangianVectorNames.size(); n++)
100 var_type[offset + Ns + n] = Z_VECTOR;
101 var_classify[offset + Ns + n] = Z_PER_ELEM;
102 var_complex[offset + Ns + n] = FALSE;
103 var_timeset[offset + Ns + n] = 1;
104 word name = parcelPrepend + lagrangianVectorNames[n];
107 var_description[offset + Ns + n],
115 Info << "Leaving: USERD_get_gold_variable_info" << endl