C
cirederf
Hello,
I am trying to run a code which compiles fine, but when I try to run it
I am facing a series of problems which are quite difficult to
understand. I am kind of new with C, the task is then a little
challenging.
First, the routine where it crashes starts like this
void read_instructions(E,argc,argv)
struct All_variables *E;
........E is then used in a series of functions and points to different
structures without causing any trouble
(E->problem_initial_fields)(E);
........the code seems to crash here
problem_initial_fields is defined in a header file that is included in
the routine
struct All_variables {
#include "convection_variables.h"
.....
void (* problem_initial_fields)();
.....
},
Can anybody explain to me what it actually means and have some
suggestions on the reasons for crashing. Is there a way I could print
out some of the values it seems to point to?
Thank you,
F.
I am trying to run a code which compiles fine, but when I try to run it
I am facing a series of problems which are quite difficult to
understand. I am kind of new with C, the task is then a little
challenging.
First, the routine where it crashes starts like this
void read_instructions(E,argc,argv)
struct All_variables *E;
........E is then used in a series of functions and points to different
structures without causing any trouble
(E->problem_initial_fields)(E);
........the code seems to crash here
problem_initial_fields is defined in a header file that is included in
the routine
struct All_variables {
#include "convection_variables.h"
.....
void (* problem_initial_fields)();
.....
},
Can anybody explain to me what it actually means and have some
suggestions on the reasons for crashing. Is there a way I could print
out some of the values it seems to point to?
Thank you,
F.