Skip to content
Snippets Groups Projects
Commit 16fad8bf authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

transfinite parameters were not set correctly

parent cc20fb61
No related branches found
No related tags found
No related merge requests found
// $Id: Geo.cpp,v 1.19 2001-04-08 20:36:49 geuzaine Exp $ // $Id: Geo.cpp,v 1.20 2001-07-30 12:40:35 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "Const.h" #include "Const.h"
...@@ -25,12 +25,9 @@ char angle_text[100] = "3.14159/2" ; ...@@ -25,12 +25,9 @@ char angle_text[100] = "3.14159/2" ;
char ax_text[100] = "0.0", ay_text[100] = "0.0", az_text[100] = "1.0"; char ax_text[100] = "0.0", ay_text[100] = "0.0", az_text[100] = "1.0";
char dx_text[100] = "0.0", dy_text[100] = "0.0", dz_text[100] = "0.0", df_text[100] = "1.0"; char dx_text[100] = "0.0", dy_text[100] = "0.0", dz_text[100] = "0.0", df_text[100] = "1.0";
char sa_text[100] = "0.0", sb_text[100] = "0.0", sc_text[100] = "0.0", sd_text[100] = "0.0"; char sa_text[100] = "0.0", sb_text[100] = "0.0", sc_text[100] = "0.0", sd_text[100] = "0.0";
char nb_pts[100] ="10", mode_value[100] = "1"; char trsf_pts_text[100] = "2", trsf_type_text[100] = "Progression 1.";
char trsf_pts_text[100] = "2", trsf_type_text[100] = "Power 1.0";
char trsf_vol_text[100] = "1"; char trsf_vol_text[100] = "1";
char char_length_text[100] = "1.0"; char char_length_text[100] = "1.";
int Mode_Transfinite = 0;
double evaluate_scalarfunction (char *var, double val, char *funct){ double evaluate_scalarfunction (char *var, double val, char *funct){
FILE *tempf; FILE *tempf;
...@@ -165,12 +162,10 @@ void add_trsfline (int N, int *l, char *fich){ ...@@ -165,12 +162,10 @@ void add_trsfline (int N, int *l, char *fich){
else sprintf(text2,",%d",l[i]); else sprintf(text2,",%d",l[i]);
strcat(text,text2); strcat(text,text2);
} }
if(Mode_Transfinite == 0) if(strlen(trsf_type_text))
sprintf(text2,"} = %s;",nb_pts); sprintf(text2,"} = %s Using %s;", trsf_pts_text, trsf_type_text);
else if(Mode_Transfinite == 1) else
sprintf(text2,"} = %s Using Progression %s;",nb_pts,mode_value); sprintf(text2,"} = %s;", trsf_pts_text);
else if(Mode_Transfinite == 2)
sprintf(text2,"} = %s Using Bump %s;",nb_pts,mode_value);
strcat(text,text2); strcat(text,text2);
add_infile(text,fich); add_infile(text,fich);
} }
...@@ -495,6 +490,3 @@ void protude(int s, char *fich, char *what){ ...@@ -495,6 +490,3 @@ void protude(int s, char *fich, char *what){
az_text,px_text,py_text,pz_text,angle_text); az_text,px_text,py_text,pz_text,angle_text);
add_infile(text,fich); add_infile(text,fich);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment