28 sprintf(filename,
"%srho_restart.tyc",
output_dir);
29 fd = fopen(filename,
"rb");
31 printf(
"-----------------------------\n");
32 printf(
"No restart density file found\n");
33 printf(
"-----------------------------\n");
37 fgets(buffer, 100, fd);
38 fgets(buffer, 100, fd);
40 fgets(buffer, 100, fd);
42 fgets(buffer, 100, fd);
44 fgets(buffer, 100, fd);
46 fgets(buffer, 100, fd);
48 fgets(buffer, 100, fd);
50 fseek(fd, 200, SEEK_SET);
51 fseek(fd1, 200, SEEK_SET);
53 if ((x != x1) || (y != y1) || (z != z1)) {
54 printf(
"Restart File dimension mismatch.");
58 for (i = 0; i <
x; i++) {
59 for (j = 0; j <
y; j++) {
60 for (k = 0; k <
z; k++) {
61 fread(&tmp, 1,
sizeof (
double), fd);
70 sprintf(filename,
"%stemp_restart.tyc",
output_dir);
71 fd = fopen(filename,
"rb");
73 printf(
"---------------------------------\n");
74 printf(
"No restart pressure file found\n");
75 printf(
"---------------------------------\n");
78 fseek(fd, 200, SEEK_SET);
79 for (i = 0; i <
x; i++) {
80 for (j = 0; j <
y; j++) {
81 for (k = 0; k <
z; k++) {
82 fread(&tmp, 1,
sizeof (
double), fd);
90 sprintf(filename,
"%svel_restart.tyc",
output_dir);
91 fd = fopen(filename,
"rb");
93 printf(
"------------------------------\n");
94 printf(
"No restart velocity file found\n");
95 printf(
"------------------------------\n");
98 fseek(fd, 200, SEEK_SET);
99 for (i = 0; i <
x; i++) {
100 for (j = 0; j <
y; j++) {
101 for (k = 0; k <
z; k++) {
102 fread(&tmp, 1,
sizeof (
double), fd);
104 fread(&tmp, 1,
sizeof (
double), fd);
106 fread(&tmp, 1,
sizeof (
double), fd);
116 sprintf(filename,
"%sdom_restart.tyc",
output_dir);
117 fd = fopen(filename,
"rb");
119 printf(
"---------------------------------\n");
120 printf(
"No restart obstacles file found\n");
121 printf(
"---------------------------------\n");
124 fseek(fd, 200, SEEK_SET);
125 for (i = 0; i <
x; i++) {
126 for (j = 0; j <
y; j++) {
127 for (k = 0; k <
z; k++) {
128 fread(&tmp1, 1,
sizeof (
int), fd);
138 sprintf(filename,
"%ssound_emitter_restart.tyc",
output_dir);
139 fd = fopen(filename,
"rb");
141 printf(
"---------------------------------\n");
142 printf(
"No restart sound-emitter file found\n");
143 printf(
"---------------------------------\n");
146 fseek(fd, 200, SEEK_SET);
147 for (i = 0; i <
x; i++) {
148 for (j = 0; j <
y; j++) {
149 for (k = 0; k <
z; k++) {
150 fread(&tmp1, 1,
sizeof (
int), fd);
158 sprintf(filename,
"%spressure_integrated_restart.tyc",
output_dir);
159 fd = fopen(filename,
"rb");
161 printf(
"---------------------------------\n");
162 printf(
"No restart pressure-integrated restart file found\n");
163 printf(
"---------------------------------\n");
166 fseek(fd, 200, SEEK_SET);
167 for (i = 0; i <
x; i++) {
168 for (j = 0; j <
y; j++) {
169 for (k = 0; k <
z; k++) {
170 fread(&tmp, 1,
sizeof (
double), fd);
181 sprintf(filename,
"%smarker_restart.tyc",
output_dir);
182 fd = fopen(filename,
"rb");
184 printf(
"---------------------------------\n");
185 printf(
"No restart marker file found\n");
186 printf(
"---------------------------------\n");
189 fseek(fd, 200, SEEK_SET);
190 for (i = 0; i <
x; i++) {
191 for (j = 0; j <
y; j++) {
192 for (k = 0; k <
z; k++) {
193 fread(&tmp, 1,
sizeof (
double), fd);
203 sprintf(filename,
"%swind_restart.tyc",
output_dir);
204 fd = fopen(filename,
"rb");
206 printf(
"---------------------------------\n");
207 printf(
"No restart wind marker file found\n");
208 printf(
"---------------------------------\n");
211 fseek(fd, 200, SEEK_SET);
212 for (i = 0; i <
x; i++) {
213 for (j = 0; j <
y; j++) {
214 for (k = 0; k <
z; k++) {
215 fread(&tmp, 1,
sizeof (
double), fd);