Salome HOME
topo2vol: use CEA repository
[tools/sat_salome.git] / products / patches / topo2volmesh-1.3.0-00001.patch
1 diff --git a/src/lib/TopiiVolPartitionPointCloudAlgo.h b/src/lib/TopiiVolPartitionPointCloudAlgo.h
2 index 501fb60..4aa4734 100644
3 --- a/src/lib/TopiiVolPartitionPointCloudAlgo.h
4 +++ b/src/lib/TopiiVolPartitionPointCloudAlgo.h
5 @@ -53,7 +53,7 @@ double tst = MPI_Wtime();
6  //---- opening files -----
7  //====================================================================================//
8  
9 -snprintf (pathString, sizeof(pathString), "%s", inpurfile);
10 +snprintf (pathString, sizeof(pathString), "%s", inputfile);
11  
12  readFile = fopen(pathString,"r");
13  
14 diff --git a/src/par-mesher/topIIvol_ParMesher.cpp b/src/par-mesher/topIIvol_ParMesher.cpp
15 index 4978c49..09a1be8 100644
16 --- a/src/par-mesher/topIIvol_ParMesher.cpp
17 +++ b/src/par-mesher/topIIvol_ParMesher.cpp
18 @@ -148,8 +148,8 @@ int main(int argc, char *argv[])
19      int pnty = 29  ;
20      int pntz = 100 ;
21  
22 -    char inpurfile[80] = "./../../data/DEM_160m.xyz" ;
23 -    char outpufile[80] = "Tetra-ParTop2Vol.mesh"     ;
24 +    char inputfile[] = "./../../data/DEM_160m.xyz" ;
25 +    char outputfile[] = "Tetra-ParTop2Vol.mesh"     ;
26  
27  //====================================================================================//
28  //---- Comandline Parameters -----
29 @@ -170,10 +170,10 @@ int main(int argc, char *argv[])
30                  pntz = atoi(argv[i+1]);
31  
32              if (!strcmp(argv[i], "--in"))
33 -                strcpy(inpurfile, argv[i+1]);
34 +                strcpy(inputfile, argv[i+1]);
35  
36              if (!strcmp(argv[i], "--out"))
37 -                strcpy(outpufile, argv[i+1]);
38 +                strcpy(outputfile, argv[i+1]);
39  
40              if (!strcmp(argv[i], "--depth"))
41                  zmax= atol(argv[i+1]);
42 @@ -240,7 +240,7 @@ if(ParallelPart == 1)
43  //-----------------------------------------------------------------------------------//
44  
45      char strname[80]="";
46 -    strcat (strname, inpurfile);
47 +    strcat (strname, inputfile);
48  
49      MPI_File_open( MPI_COMM_WORLD, strname, 
50                     MPI_MODE_RDONLY,
51 @@ -309,7 +309,7 @@ if(ParallelPart == 1)
52  //---- Name of partitioned mesh cloud -----
53  //====================================================================================//
54  
55 -    char partCloudName[80] = "pc_part";
56 +    char partCloudName[] = "pc_part";
57  
58      MPI_Barrier(MPI_COMM_WORLD);
59  
60 @@ -437,8 +437,8 @@ if(ParallelPart == 1)
61  //---- open the file, and set the view -----
62  //====================================================================================//
63  
64 -    char str[80]="";
65 -    strcat (str, outpufile);
66 +    char str[]="";
67 +    strcat (str, outputfile);
68  
69      MPI_File_open(MPI_COMM_WORLD, str,
70                    MPI_MODE_CREATE|MPI_MODE_WRONLY,