Imported Upstream version 4.6.0
[debian/atlc] / src / non_gui / set_data_to_sensible_starting_values.c
1 #include "config.h"
2
3 #ifdef HAVE_STDLIB_H
4 #include <stdlib.h>
5 #endif
6
7 #ifdef SYS_TYPES_H
8 #include <sys/types.h>
9 #endif
10
11 #ifdef HAVE_STRINGS_H
12 #include <strings.h>
13 #endif
14
15 #ifdef HAVE_STRING_H
16 #include <string.h>
17 #endif
18
19 #ifdef HAVE_TIME_H
20 #include <time.h>
21 #endif
22
23 #include "definitions.h"
24
25
26 void set_data_to_sensible_starting_values(struct transmission_line_properties *data)
27 {
28   /* Most of the values below are set to -3. This is so when they are unchanged,
29   its easy to pick them up in a debugger. Others are set to important values
30   rather than -3 */
31   data->dielectrics_in_bitmap=0;
32   data->dielectrics_on_command_line=0;
33   data->r=1.9; /* For now at least, this is still global, so this has no effect XXX */
34   data->image_fiddle_factor=IMAGE_FIDDLE_FACTOR;
35   data->cutoff=0.0001;
36   data->avoid_use_of_fast_convergence_methodQ=FALSE;
37   data->the_single_Er=1.0;
38   data->Er=1.0;
39   data->found_this_dielectric=1.0;
40   data->couplerQ=FALSE;
41   data->verbose_level=0;
42   data->should_binary_data_be_written_tooQ=FALSE;
43   data->write_binary_field_imagesQ=TRUE;
44   data->write_bitmap_field_imagesQ=TRUE;
45
46   data->Lodd_vacuum=-3; data->Leven_vacuum=-3;
47   data->L_vacuum=-3; data->Codd_vacuum=-3;
48   data->Codd_vacuum=-3; data->Ceven_vacuum=-3;
49   data->Lodd_vacuum=-3; data->Leven_vacuum=-3; 
50   data->display=-3;
51   data->Zo=-3 ; data->Zo_vacuum=-3 ; data->Zodd_vacuum=-3; 
52   data->Zodd_vacuum=-3; data->Zeven_vacuum=-3; 
53   data->Zeven_vacuum=-3; data->Zdiff=-3; data->Zdiff_vacuum=-3; 
54   data->Zcomm=-3; data->Zcomm_vacuum=-3;
55   data->velocity=-3; data->velocity_factor=-3; 
56   data->relative_permittivity=-3;
57 }