| 1 |
C Copyright(C) 1999-2020 National Technology & Engineering Solutions |
| 2 |
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
C NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
C |
| 5 |
C See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
program testwt3 |
| 8 |
|
| 9 |
c This is a test program for the Fortran binding of the EXODUS II |
| 10 |
c database write routines. This test writes GENISIS (geometry) |
| 11 |
c data to the history file. |
| 12 |
|
| 13 |
c 08/10/93 V.R. Yarberry - Updated for use with 2.01 API |
| 14 |
|
| 15 |
include 'exodus_app.inc' |
| 16 |
|
| 17 |
integer iin, iout |
| 18 |
integer exoid, exoidh, num_dim, num_nodes, num_elem, num_elem_blk |
| 19 |
integer num_elem_in_block(2), num_node_sets |
| 20 |
integer num_side_sets, error |
| 21 |
integer i, j, k, m, elem_map(2), connect(4) |
| 22 |
integer node_list(10), elem_list(10) |
| 23 |
integer ebids(2),ids(2), num_nodes_per_set(2), num_elem_per_set(1) |
| 24 |
integer node_ind(2), elem_ind(1), num_qa_rec, num_info |
| 25 |
integer num_his_vars, num_glo_vars, num_nod_vars, num_ele_vars |
| 26 |
integer truth_tab(3,2) |
| 27 |
integer hist_time_step, whole_time_step, num_time_steps |
| 28 |
integer cpu_word_size, io_word_size |
| 29 |
|
| 30 |
real hist_var_vals(10), glob_var_vals(10), nodal_var_vals(8) |
| 31 |
real time_value, elem_var_vals(20) |
| 32 |
real x(8), y(8), dummy(1) |
| 33 |
real attrib(1), dist_fact(8) |
| 34 |
|
| 35 |
character*(MXLNLN) title |
| 36 |
character*(MXSTLN) coord_names(3) |
| 37 |
character*(MXSTLN) cname |
| 38 |
character*(MXSTLN) var_names(3) |
| 39 |
character*(MXSTLN) qa_record(4,2) |
| 40 |
character*(MXLNLN) inform(3) |
| 41 |
|
| 42 |
logical whole |
| 43 |
|
| 44 |
data iin /5/, iout /6/ |
| 45 |
|
| 46 |
c create EXODUS II files |
| 47 |
|
| 48 |
cpu_word_size = 4 |
| 49 |
io_word_size = 4 |
| 50 |
|
| 51 |
c first create a "regular" file that contains everything except |
| 52 |
c history variable info |
| 53 |
|
| 54 |
exoid = excre ("test.exo", |
| 55 |
1 "r", EXCLOB, cpu_word_size, io_word_size, ierr) |
| 56 |
write (iout,'("after excre for test.exo, id: ", i3)') exoid |
| 57 |
write (iout,'("after excre, error = ", i3)') ierr |
| 58 |
|
| 59 |
c create a "history" file if you will output history variables |
| 60 |
|
| 61 |
exoidh = excre ("testh.exo", |
| 62 |
1 "h", EXCLOB, cpu_word_size, io_word_size, ierr) |
| 63 |
write (iout,'("after excre for testh.exo, id: ", i3)') exoidh |
| 64 |
write (iout,'("after excre, error = ", i3)') ierr |
| 65 |
|
| 66 |
c initialize file with parameters |
| 67 |
|
| 68 |
title = "This is test 3 - genisis data in history file" |
| 69 |
num_dim = 2 |
| 70 |
num_nodes = 8 |
| 71 |
num_elem = 2 |
| 72 |
num_elem_blk = 2 |
| 73 |
num_node_sets = 2 |
| 74 |
num_side_sets = 1 |
| 75 |
|
| 76 |
call expini (exoid, title, num_dim, num_nodes, |
| 77 |
1 num_elem, num_elem_blk, num_node_sets, |
| 78 |
2 num_side_sets, ierr) |
| 79 |
|
| 80 |
write (iout, '("after expini, error = ", i3)' ) ierr |
| 81 |
|
| 82 |
call expini (exoidh, title, num_dim, num_nodes, |
| 83 |
1 num_elem, num_elem_blk, num_node_sets, |
| 84 |
2 num_side_sets, ierr) |
| 85 |
|
| 86 |
write (iout, '("after expini (h), error = ", i3)' ) ierr |
| 87 |
|
| 88 |
c write nodal coordinates values and names to database |
| 89 |
|
| 90 |
x(1) = 0.0 |
| 91 |
x(2) = 1.0 |
| 92 |
x(3) = 1.0 |
| 93 |
x(4) = 0.0 |
| 94 |
x(5) = 1.0 |
| 95 |
x(6) = 2.0 |
| 96 |
x(7) = 2.0 |
| 97 |
x(8) = 1.0 |
| 98 |
y(1) = 0.0 |
| 99 |
y(2) = 0.0 |
| 100 |
y(3) = 1.0 |
| 101 |
y(4) = 1.0 |
| 102 |
y(5) = 0.0 |
| 103 |
y(6) = 0.0 |
| 104 |
y(7) = 1.0 |
| 105 |
y(8) = 1.0 |
| 106 |
|
| 107 |
call expcor (exoid, x, y, dummy, ierr) |
| 108 |
write (iout, '("after expcor, error = ", i3)' ) ierr |
| 109 |
|
| 110 |
call expcor (exoidh, x, y, dummy, ierr) |
| 111 |
write (iout, '("after expcor (h), error = ", i3)' ) ierr |
| 112 |
|
| 113 |
coord_names(1) = "xcoorjun" |
| 114 |
coord_names(2) = "ycoorjun" |
| 115 |
|
| 116 |
call expcon (exoid, coord_names, ierr) |
| 117 |
write (iout, '("after expcon, error = ", i3)' ) ierr |
| 118 |
|
| 119 |
call expcon (exoidh, coord_names, ierr) |
| 120 |
write (iout, '("after expcon (h), error = ", i3)' ) ierr |
| 121 |
|
| 122 |
c write element order map |
| 123 |
|
| 124 |
do 10 i = 1, num_elem |
| 125 |
elem_map(i) = i |
| 126 |
10 continue |
| 127 |
|
| 128 |
call expmap (exoid, elem_map, ierr) |
| 129 |
write (iout, '("after expmap, error = ", i3)' ) ierr |
| 130 |
|
| 131 |
call expmap (exoidh, elem_map, ierr) |
| 132 |
write (iout, '("after expmap (h), error = ", i3)' ) ierr |
| 133 |
|
| 134 |
c write element block parameters |
| 135 |
|
| 136 |
num_elem_in_block(1) = 1 |
| 137 |
num_elem_in_block(2) = 1 |
| 138 |
|
| 139 |
ebids(1) = 10 |
| 140 |
ebids(2) = 11 |
| 141 |
|
| 142 |
cname = "quadjunk" |
| 143 |
|
| 144 |
call expelb (exoid, ebids(1), cname, num_elem_in_block(1), |
| 145 |
1 4,1,ierr) |
| 146 |
write (iout, '("after expelb, error = ", i3)' ) ierr |
| 147 |
|
| 148 |
call expelb (exoid, ebids(2), cname, num_elem_in_block(2), |
| 149 |
1 4,1,ierr) |
| 150 |
write (iout, '("after expelb, error = ", i3)' ) ierr |
| 151 |
|
| 152 |
call expelb (exoidh, ebids(1), cname, num_elem_in_block(1), |
| 153 |
1 4,1,ierr) |
| 154 |
write (iout, '("after expelb (h), error = ", i3)' ) ierr |
| 155 |
|
| 156 |
call expelb (exoidh, ebids(2), cname, num_elem_in_block(2), |
| 157 |
1 4,1,ierr) |
| 158 |
write (iout, '("after expelbi(h), error = ", i3)' ) ierr |
| 159 |
|
| 160 |
c write element connectivity |
| 161 |
|
| 162 |
connect(1) = 1 |
| 163 |
connect(2) = 2 |
| 164 |
connect(3) = 3 |
| 165 |
connect(4) = 4 |
| 166 |
|
| 167 |
call expelc (exoid, ebids(1), connect, ierr) |
| 168 |
write (iout, '("after expelc, error = ", i3)' ) ierr |
| 169 |
|
| 170 |
call expelc (exoidh, ebids(1), connect, ierr) |
| 171 |
write (iout, '("after expelci (h), error = ", i3)' ) ierr |
| 172 |
|
| 173 |
connect(1) = 5 |
| 174 |
connect(2) = 6 |
| 175 |
connect(3) = 7 |
| 176 |
connect(4) = 8 |
| 177 |
|
| 178 |
call expelc (exoid, ebids(2), connect, ierr) |
| 179 |
write (iout, '("after expelc, error = ", i3)' ) ierr |
| 180 |
|
| 181 |
call expelc (exoidh, ebids(2), connect, ierr) |
| 182 |
write (iout, '("after expelc (h), error = ", i3)' ) ierr |
| 183 |
|
| 184 |
c write element block attributes |
| 185 |
|
| 186 |
attrib(1) = 3.14159 |
| 187 |
call expeat (exoid, ebids(1), attrib, ierr) |
| 188 |
write (iout, '("after expeat, error = ", i3)' ) ierr |
| 189 |
|
| 190 |
call expeat (exoidh, ebids(1), attrib, ierr) |
| 191 |
write (iout, '("after expeat (h), error = ", i3)' ) ierr |
| 192 |
|
| 193 |
attrib(1) = 6.14159 |
| 194 |
call expeat (exoid, ebids(2), attrib, ierr) |
| 195 |
write (iout, '("after expeat, error = ", i3)' ) ierr |
| 196 |
|
| 197 |
call expeat (exoidh, ebids(2), attrib, ierr) |
| 198 |
write (iout, '("after expeat (h), error = ", i3)' ) ierr |
| 199 |
|
| 200 |
c write individual node sets |
| 201 |
|
| 202 |
call expnp (exoid, 20, 5, ierr) |
| 203 |
write (iout, '("after expnp, error = ", i3)' ) ierr |
| 204 |
|
| 205 |
call expnp (exoidh, 20, 5, ierr) |
| 206 |
write (iout, '("after expnp (h), error = ", i3)' ) ierr |
| 207 |
|
| 208 |
node_list(1) = 100 |
| 209 |
node_list(2) = 101 |
| 210 |
node_list(3) = 102 |
| 211 |
node_list(4) = 103 |
| 212 |
node_list(5) = 104 |
| 213 |
|
| 214 |
dist_fact(1) = 1.0 |
| 215 |
dist_fact(2) = 2.0 |
| 216 |
dist_fact(3) = 3.0 |
| 217 |
dist_fact(4) = 4.0 |
| 218 |
dist_fact(5) = 5.0 |
| 219 |
|
| 220 |
call expns (exoid, 20, node_list, dist_fact, ierr) |
| 221 |
write (iout, '("after expns, error = ", i3)' ) ierr |
| 222 |
|
| 223 |
call expns (exoidh, 20, node_list, dist_fact, ierr) |
| 224 |
write (iout, '("after expns (h), error = ", i3)' ) ierr |
| 225 |
|
| 226 |
call expnp (exoid, 21, 3, ierr) |
| 227 |
write (iout, '("after expnp, error = ", i3)' ) ierr |
| 228 |
|
| 229 |
call expnp (exoidh, 21, 3, ierr) |
| 230 |
write (iout, '("after expnp (h), error = ", i3)' ) ierr |
| 231 |
|
| 232 |
node_list(1) = 200 |
| 233 |
node_list(2) = 201 |
| 234 |
node_list(3) = 202 |
| 235 |
|
| 236 |
dist_fact(1) = 1.1 |
| 237 |
dist_fact(2) = 2.1 |
| 238 |
dist_fact(3) = 3.1 |
| 239 |
|
| 240 |
call expns (exoid, 21, node_list, dist_fact, ierr) |
| 241 |
write (iout, '("after expns, error = ", i3)' ) ierr |
| 242 |
|
| 243 |
call expns (exoidh, 21, node_list, dist_fact, ierr) |
| 244 |
write (iout, '("after expns (h), error = ", i3)' ) ierr |
| 245 |
|
| 246 |
c write concatenated node sets; this produces the same information as |
| 247 |
c the above code which writes individual node sets |
| 248 |
|
| 249 |
c ids(1) = 20 |
| 250 |
c ids(2) = 21 |
| 251 |
|
| 252 |
c num_nodes_per_set(1) = 5 |
| 253 |
c num_nodes_per_set(2) = 3 |
| 254 |
|
| 255 |
c node_ind(1) = 1 |
| 256 |
c node_ind(2) = 6 |
| 257 |
|
| 258 |
c node_list(1) = 100 |
| 259 |
c node_list(2) = 101 |
| 260 |
c node_list(3) = 102 |
| 261 |
c node_list(4) = 103 |
| 262 |
c node_list(5) = 104 |
| 263 |
c node_list(6) = 200 |
| 264 |
c node_list(7) = 201 |
| 265 |
c node_list(8) = 202 |
| 266 |
|
| 267 |
c dist_fact(1) = 1.0 |
| 268 |
c dist_fact(2) = 2.0 |
| 269 |
c dist_fact(3) = 3.0 |
| 270 |
c dist_fact(4) = 4.0 |
| 271 |
c dist_fact(5) = 5.0 |
| 272 |
c dist_fact(6) = 1.1 |
| 273 |
c dist_fact(7) = 2.1 |
| 274 |
c dist_fact(8) = 3.1 |
| 275 |
|
| 276 |
c call expcns (exoid, ids, num_nodes_per_set, node_ind, node_list, |
| 277 |
c 1 dist_fact, ierr) |
| 278 |
c write (iout, '("after expcns, error = ", i3)' ) ierr |
| 279 |
|
| 280 |
c write individual side sets |
| 281 |
|
| 282 |
call expsp (exoid, 30, 2, 4, ierr) |
| 283 |
write (iout, '("after expsp, error = ", i3)' ) ierr |
| 284 |
|
| 285 |
call expsp (exoidh, 30, 2, 4, ierr) |
| 286 |
write (iout, '("after expsp (h), error = ", i3)' ) ierr |
| 287 |
|
| 288 |
elem_list(1) = 1 |
| 289 |
elem_list(2) = 2 |
| 290 |
|
| 291 |
node_list(1) = 1 |
| 292 |
node_list(2) = 2 |
| 293 |
node_list(3) = 3 |
| 294 |
node_list(4) = 4 |
| 295 |
|
| 296 |
dist_fact(1) = 0.0 |
| 297 |
dist_fact(2) = 0.0 |
| 298 |
dist_fact(3) = 0.0 |
| 299 |
dist_fact(4) = 0.0 |
| 300 |
|
| 301 |
call expss (exoid, 30, elem_list, node_list, ierr) |
| 302 |
write (iout, '("after expss, error = ", i3)' ) ierr |
| 303 |
|
| 304 |
call expssd (exoid, 30, dist_fact, ierr) |
| 305 |
write (iout, '("after expssd, error = ", i3)' ) ierr |
| 306 |
|
| 307 |
call expss (exoidh, 30, elem_list, node_list, ierr) |
| 308 |
write (iout, '("after expss (h), error = ", i3)' ) ierr |
| 309 |
|
| 310 |
call expssd (exoidh, 30, dist_fact, ierr) |
| 311 |
write (iout, '("after expssd (h), error = ", i3)' ) ierr |
| 312 |
|
| 313 |
c write concatenated side sets; this produces the same information as |
| 314 |
c the above code which writes individual side sets |
| 315 |
|
| 316 |
c ids(1) = 30 |
| 317 |
|
| 318 |
c num_elem_per_set(1) = 2 |
| 319 |
|
| 320 |
c num_nodes_per_set(1) = 4 |
| 321 |
|
| 322 |
c elem_ind(1) = 1 |
| 323 |
|
| 324 |
c node_ind(1) = 1 |
| 325 |
|
| 326 |
c elem_list(1) = 1 |
| 327 |
c elem_list(2) = 2 |
| 328 |
|
| 329 |
c node_list(1) = 1 |
| 330 |
c node_list(2) = 2 |
| 331 |
c node_list(3) = 3 |
| 332 |
c node_list(4) = 4 |
| 333 |
|
| 334 |
c dist_fact(1) = 0.0 |
| 335 |
c dist_fact(2) = 0.0 |
| 336 |
c dist_fact(3) = 0.0 |
| 337 |
c dist_fact(4) = 0.0 |
| 338 |
|
| 339 |
c call expcss (exoid, ids, num_elem_per_set, num_nodes_per_set, |
| 340 |
c 1 elem_ind, node_ind, elem_list, node_list, dist_fact, |
| 341 |
c 2 ierr) |
| 342 |
c write (iout, '("after expcss, error = ", i3)' ) ierr |
| 343 |
|
| 344 |
c write QA records |
| 345 |
|
| 346 |
num_qa_rec = 2 |
| 347 |
|
| 348 |
qa_record(1,1) = "PRONTO2D" |
| 349 |
qa_record(2,1) = "pronto2d" |
| 350 |
qa_record(3,1) = "3/10/92" |
| 351 |
qa_record(4,1) = "15:41:33" |
| 352 |
qa_record(1,2) = "FASTQ" |
| 353 |
qa_record(2,2) = "fastq" |
| 354 |
qa_record(3,2) = "2/10/92" |
| 355 |
qa_record(4,2) = "11:41:33" |
| 356 |
|
| 357 |
call expqa (exoid, num_qa_rec, qa_record, ierr) |
| 358 |
write (iout, '("after expqa, error = ", i3)' ) ierr |
| 359 |
|
| 360 |
call expqa (exoidh, num_qa_rec, qa_record, ierr) |
| 361 |
write (iout, '("after expqa (h), error = ", i3)' ) ierr |
| 362 |
|
| 363 |
c write information records |
| 364 |
|
| 365 |
num_info = 3 |
| 366 |
|
| 367 |
inform(1) = "This is the first information record." |
| 368 |
inform(2) = "This is the second information record." |
| 369 |
inform(3) = "This is the third information record." |
| 370 |
|
| 371 |
call expinf (exoid, num_info, inform, ierr) |
| 372 |
write (iout, '("after expinf, error = ", i3)' ) ierr |
| 373 |
|
| 374 |
call expinf (exoidh, num_info, inform, ierr) |
| 375 |
write (iout, '("after expinf (h), error = ", i3)' ) ierr |
| 376 |
|
| 377 |
c write results variables parameters and names |
| 378 |
|
| 379 |
num_his_vars = 1 |
| 380 |
|
| 381 |
var_names(1) = "his_vars" |
| 382 |
|
| 383 |
call expvp (exoidh, "h", num_his_vars, ierr) |
| 384 |
write (iout, '("after expvp, error = ", i3)' ) ierr |
| 385 |
call expvan (exoidh, "h", num_his_vars, var_names, ierr) |
| 386 |
write (iout, '("after expvan, error = ", i3)' ) ierr |
| 387 |
|
| 388 |
num_glo_vars = 1 |
| 389 |
|
| 390 |
var_names(1) = "glo_vars" |
| 391 |
|
| 392 |
call expvp (exoid, "g", num_glo_vars, ierr) |
| 393 |
write (iout, '("after expvp, error = ", i3)' ) ierr |
| 394 |
call expvan (exoid, "g", num_glo_vars, var_names, ierr) |
| 395 |
write (iout, '("after expvan, error = ", i3)' ) ierr |
| 396 |
|
| 397 |
num_nod_vars = 2 |
| 398 |
|
| 399 |
var_names(1) = "nod_var0" |
| 400 |
var_names(2) = "nod_var1" |
| 401 |
|
| 402 |
call expvp (exoid, "n", num_nod_vars, ierr) |
| 403 |
write (iout, '("after expvp, error = ", i3)' ) ierr |
| 404 |
call expvan (exoid, "n", num_nod_vars, var_names, ierr) |
| 405 |
write (iout, '("after expvan, error = ", i3)' ) ierr |
| 406 |
|
| 407 |
num_ele_vars = 3 |
| 408 |
|
| 409 |
var_names(1) = "ele_var0" |
| 410 |
var_names(2) = "ele_var1" |
| 411 |
var_names(3) = "ele_var2" |
| 412 |
|
| 413 |
call expvp (exoid, "e", num_ele_vars, ierr) |
| 414 |
write (iout, '("after expvp, error = ", i3)' ) ierr |
| 415 |
call expvan (exoid, "e", num_ele_vars, var_names, ierr) |
| 416 |
write (iout, '("after expvan, error = ", i3)' ) ierr |
| 417 |
|
| 418 |
c write element variable truth table |
| 419 |
|
| 420 |
k = 0 |
| 421 |
|
| 422 |
do 30 i = 1,num_elem_blk |
| 423 |
do 20 j = 1,num_ele_vars |
| 424 |
truth_tab(j,i) = 1 |
| 425 |
20 continue |
| 426 |
30 continue |
| 427 |
|
| 428 |
call exgebi (exoid, ebids, ierr) |
| 429 |
write (iout, '("after exgebi, error = ", i3)' ) ierr |
| 430 |
call expvtt (exoid, num_elem_blk, num_ele_vars, truth_tab, ebids, |
| 431 |
& ierr) |
| 432 |
write (iout, '("after expvtt, error = ", i3)' ) ierr |
| 433 |
|
| 434 |
c for each time step, write the analysis results; |
| 435 |
c the code below fills the arrays hist_var_vals, glob_var_vals, |
| 436 |
c nodal_var_vals, and elem_var_vals with values for debugging purposes; |
| 437 |
c obviously the analysis code will populate these arrays |
| 438 |
|
| 439 |
whole = .true. |
| 440 |
hist_time_step = 1 |
| 441 |
whole_time_step = 1 |
| 442 |
num_time_steps = 10 |
| 443 |
|
| 444 |
do 110 i = 1, num_time_steps |
| 445 |
time_value = real(i)/100 |
| 446 |
|
| 447 |
c if history time step |
| 448 |
|
| 449 |
c write time value to history file |
| 450 |
|
| 451 |
call exptim (exoidh, hist_time_step, time_value, ierr) |
| 452 |
write (iout, '("after exptim, error = ", i3)' ) ierr |
| 453 |
|
| 454 |
c write history variables to history file |
| 455 |
|
| 456 |
do 40 j = 1, num_his_vars |
| 457 |
hist_var_vals(j) = real(j+1) * time_value |
| 458 |
40 continue |
| 459 |
|
| 460 |
call exphv (exoidh, hist_time_step, num_his_vars, |
| 461 |
1 hist_var_vals, ierr) |
| 462 |
write (iout, '("after exphv, error = ", i3)' ) ierr |
| 463 |
|
| 464 |
hist_time_step = hist_time_step + 1 |
| 465 |
|
| 466 |
c update the history file |
| 467 |
|
| 468 |
call exupda (exoidh, ierr) |
| 469 |
write (iout, '("after exupda, error = ", i3)' ) ierr |
| 470 |
|
| 471 |
c if whole time step |
| 472 |
|
| 473 |
if (whole) then |
| 474 |
|
| 475 |
c write time value to regular file |
| 476 |
|
| 477 |
call exptim (exoid, whole_time_step, time_value, ierr) |
| 478 |
write (iout, '("after exptim, error = ", i3)' ) ierr |
| 479 |
|
| 480 |
c write global variables |
| 481 |
|
| 482 |
do 50 j = 1, num_glo_vars |
| 483 |
glob_var_vals(j) = real(j+1) * time_value |
| 484 |
50 continue |
| 485 |
|
| 486 |
call expgv (exoid, whole_time_step, num_glo_vars, |
| 487 |
1 glob_var_vals, ierr) |
| 488 |
write (iout, '("after expgv, error = ", i3)' ) ierr |
| 489 |
|
| 490 |
c write nodal variables |
| 491 |
|
| 492 |
do 70 k = 1, num_nod_vars |
| 493 |
do 60 j = 1, num_nodes |
| 494 |
|
| 495 |
nodal_var_vals(j) = real(k) + (real(j) * time_value) |
| 496 |
|
| 497 |
60 continue |
| 498 |
|
| 499 |
call expnv (exoid, whole_time_step, k, num_nodes, |
| 500 |
1 nodal_var_vals, ierr) |
| 501 |
write (iout, '("after expnv, error = ", i3)' ) ierr |
| 502 |
|
| 503 |
70 continue |
| 504 |
|
| 505 |
c write element variables |
| 506 |
|
| 507 |
do 100 k = 1, num_ele_vars |
| 508 |
do 90 j = 1, num_elem_blk |
| 509 |
do 80 m = 1, num_elem_in_block(j) |
| 510 |
|
| 511 |
elem_var_vals(m) = real(k+1) + real(j+1) + |
| 512 |
1 (real(m)*time_value) |
| 513 |
|
| 514 |
80 continue |
| 515 |
|
| 516 |
call expev (exoid, whole_time_step, k, ebids(j), |
| 517 |
1 num_elem_in_block(j), elem_var_vals, ierr) |
| 518 |
write (iout, '("after expev, error = ", i3)' ) ierr |
| 519 |
|
| 520 |
90 continue |
| 521 |
100 continue |
| 522 |
|
| 523 |
whole_time_step = whole_time_step + 1 |
| 524 |
|
| 525 |
c update the data file; this should be done at the end of every time |
| 526 |
c step to ensure that no data is lost if the analysis dies |
| 527 |
|
| 528 |
call exupda (exoid, ierr) |
| 529 |
write (iout, '("after exupda, error = ", i3)' ) ierr |
| 530 |
|
| 531 |
endif |
| 532 |
|
| 533 |
110 continue |
| 534 |
|
| 535 |
c close the EXODUS files |
| 536 |
|
| 537 |
call exclos (exoid, ierr) |
| 538 |
write (iout, '("after exclos, error = ", i3)' ) ierr |
| 539 |
|
| 540 |
call exclos (exoidh, ierr) |
| 541 |
write (iout, '("after exclos, error = ", i3)' ) ierr |
| 542 |
|
| 543 |
stop |
| 544 |
end |