Exodus 8.24
Loading...
Searching...
No Matches
/exodus_for/test/testcpnl.f
1C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3C NTESS, the U.S. Government retains certain rights in this software.
4C
5C See packages/seacas/LICENSE for details
6
7 program testcpnl
8
9c This is a test program for the Fortran binding of the EXODUS II
10c database copy function (excopy).
11
12 implicit none
13
14 include 'exodusII.inc'
15
16 integer iin, iout, exoid, exoid1, ierr, cpu_ws, io_ws, mod_sz
17
18 real vers
19
20 data iin /5/, iout /6/
21
22c open EXODUS II input file
23
24c the setting of cpu_ws isn't used for copying but will test the
25c conversion routines
26
27 cpu_ws = 8
28 io_ws = 4
29
30 exoid = exopen("test.exo", exread, cpu_ws, io_ws, vers, ierr)
31 write (iout, '(/"after exopen, error = ",i3)')
32 1 ierr
33
34 write (iout, '("test.exo is an EXODUSII file; version ",
35 1 f4.2)') vers
36 write (iout, '(" I/O word size: ",i4)') io_ws
37 mod_sz = exlgmd(exoid)
38 write (iout, '(" Model Size",i2)') mod_sz
39
40c create EXODUS II output file with default size reals
41
42c the setting of cpu_ws isn't used for copying but will test the
43c conversion routines
44
45 cpu_ws = 8
46 io_ws = 0
47
48 exoid1 = excre("testcpnl.exo",
49 1 exclob+exlarg, cpu_ws, io_ws, ierr)
50 write (iout,'("after excre, id = ", i3, ", error = ",i3)')
51 1 exoid1, ierr
52 write (iout,'(" I/O word size: ",i4)') io_ws
53
54 mod_sz = exlgmd(exoid1)
55 write (iout, '(" Model Size",i2)') mod_sz
56
57 write (iout,'("after excre, error = ", i4)') ierr
58
59 call excopy (exoid, exoid1, ierr)
60 write (iout, '(/"after excopy, error = ", i3)' ) ierr
61
62 call exclos (exoid, ierr)
63 write (iout, '(/"after exclos, error = ", i3)' ) ierr
64
65 call exclos (exoid1, ierr)
66 write (iout, '(/"after exclos, error = ", i3)' ) ierr
67
68 stop
69 end
int excre(char *path, int *clobmode, int *cpu_word_size, int *io_word_size, int *ierr, int pathlen)
Definition exo_jack.c:176
int exopen(char *path, int *mode, int *cpu_word_size, int *io_word_size, float *version, int *ierr, int pathlen)
Definition exo_jack.c:201
void exclos(int *idexo, int *ierr)
Definition exo_jack.c:227
int exlgmd(int *idexo)
Definition exo_jack.c:2584
void excopy(int *idexo_in, int *idexo_out, int *ierr)
Definition exo_jack.c:2643