AcouSTO  version 2.0

◆ trovatag()

int trovatag ( int  phytag,
int *  indice 
)
32  { // gp
33  int i, num;
34  struct gmsh_bc* gmshbc;
35 
36  if(NULL != multif){
37  num = nphystags*modsolinfo->nome;
38  }else{
39  num = nphystags;
40  }
41 
42  for(i=0; i<num; i++){
43  gmshbc = (struct gmsh_bc*) phystags[i].ptrgmshbc;
44  //logger(LOG_DEBUG,"tag confronto %d = %d\n", phytag, gmshbc->tag);
45  if(phytag == gmshbc->tag){
46  *indice = i;
47  return 1;
48  }
49  }
50  return -1; // error: no matching tag
51 }
External geometry boundary conditions assigned with physical tags stored in .msh file using GMSH v2...
Definition: structs.h:261
int tag
Definition: structs.h:262
struct phystag * phystags
Definition: globals.h:58
char * multif
Definition: globals.h:60
int nphystags
Definition: globals.h:62
struct modsol_info * modsolinfo
Definition: globals.h:44
int nome
Definition: structs.h:458