@@ -1385,7 +1385,7 @@ class VTK_LoadMesh_Op : public E_F0mps {
1385
1385
basicAC_F0::name_and_type VTK_LoadMesh_Op::name_param[] = {{" reft" , &typeid (long )},
1386
1386
{" swap" , &typeid (bool )},
1387
1387
{" refe" , &typeid (long )},
1388
- {" namelabel" , &typeid (string)},
1388
+ {" namelabel" , &typeid (string* )},
1389
1389
{" fields" , &typeid ( KN<KN<double > >*)}};
1390
1390
1391
1391
class VTK_LoadMesh : public OneOperator {
@@ -3235,7 +3235,7 @@ class VTK_LoadMesh3_Op : public E_F0mps {
3235
3235
3236
3236
basicAC_F0::name_and_type VTK_LoadMesh3_Op::name_param[] = {
3237
3237
{" reftet" , &typeid (long )}, {" swap" , &typeid (bool )},
3238
- {" refface" , &typeid (long )}, {" namelabel" , &typeid (string)},
3238
+ {" refface" , &typeid (long )}, {" namelabel" , &typeid (string* )},
3239
3239
{" cleanmesh" , &typeid (bool )}, {" removeduplicate" , &typeid (bool )},
3240
3240
{" precisvertice" , &typeid (double )},
3241
3241
{" fields" , &typeid ( KN<KN<double > >*)}
@@ -5635,9 +5635,9 @@ class VTK_WriteMeshT_Op : public E_F0mps {
5635
5635
5636
5636
vector< Expression2 > l;
5637
5637
#ifndef COMMON_HPDDM_PARALLEL_IO
5638
- static const int n_name_param = 8 ;
5638
+ static const int n_name_param = std::is_same<MMesh, MeshS>::value ? 8 : 7 ;
5639
5639
#else
5640
- static const int n_name_param = 9 ;
5640
+ static const int n_name_param = std::is_same<MMesh, MeshS>::value ? 9 : 8 ; ;
5641
5641
#endif
5642
5642
static basicAC_F0::name_and_type name_param[];
5643
5643
Expression nargs[n_name_param];
@@ -5650,6 +5650,9 @@ class VTK_WriteMeshT_Op : public E_F0mps {
5650
5650
bool arg (int i, Stack stack, bool a) const {
5651
5651
return nargs[i] ? GetAny< bool >((*nargs[i])(stack)) : a;
5652
5652
}
5653
+ string* arg (int i, Stack stack, string* a) const {
5654
+ return nargs[i] ? GetAny< string* >((*nargs[i])(stack)) : a;
5655
+ }
5653
5656
double arg (int i, Stack stack, double a) const {
5654
5657
return nargs[i] ? GetAny< double >((*nargs[i])(stack)) : a;
5655
5658
}
@@ -6337,6 +6340,7 @@ class VTK_LoadMeshT_Op : public E_F0mps {
6337
6340
double arg (int i, Stack stack, double a) const {
6338
6341
return nargs[i] ? GetAny< double >((*nargs[i])(stack)) : a;
6339
6342
}
6343
+ string* arg (int i, Stack stack, string* a) const { return nargs[i] ? GetAny< string* >((*nargs[i])(stack)) : a;}
6340
6344
KN<KN<double > >* arg (int i, Stack stack,KN<KN<double > >*p) const {
6341
6345
return nargs[i] ? GetAny< KN<KN<double > >* >((*nargs[i])(stack)) : p;
6342
6346
}
@@ -6358,7 +6362,7 @@ basicAC_F0::name_and_type VTK_LoadMeshT_Op< MeshS >::name_param[] = {
6358
6362
{" reftri" , &typeid (long )},
6359
6363
{" swap" , &typeid (bool )},
6360
6364
{" refedge" , &typeid (long )},
6361
- {" namelabel" , &typeid (string)},
6365
+ {" namelabel" , &typeid (string* )},
6362
6366
{" cleanmesh" , &typeid (bool )},
6363
6367
{" removeduplicate" , &typeid (bool )},
6364
6368
{" precisvertice" , &typeid (double )},
@@ -6371,7 +6375,7 @@ basicAC_F0::name_and_type VTK_LoadMeshT_Op< MeshL >::name_param[] = {
6371
6375
{" refedge" , &typeid (long )},
6372
6376
{" swap" , &typeid (bool )},
6373
6377
{" refbdpoint" , &typeid (long )},
6374
- {" namelabel" , &typeid (string)},
6378
+ {" namelabel" , &typeid (string* )},
6375
6379
{" cleanmesh" , &typeid (bool )},
6376
6380
{" removeduplicate" , &typeid (bool )},
6377
6381
{" precisvertice" , &typeid (double )},
0 commit comments