Skip to content

Commit

Permalink
Uncommented the Fortran getcompress test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmribler committed Feb 6, 2024
1 parent 678b33a commit 1188e45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
8 changes: 4 additions & 4 deletions mfhdf/fortran/mfsdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,7 @@ nsfsflmd(intf *id, intf *fillmode)

/*-------------------------------------------------------------------------
* Name: scgichnk
* Puporse: Call SDgetchunkinfo
* Purpose: Call SDgetchunkinfo
* Inputs: id: SDS access id
* Outputs: dim_length: chunk dimensions
* flags: -1 - SDS is nonchunked
Expand Down Expand Up @@ -1750,7 +1750,7 @@ nscscchnk(intf *id, intf *maxcache, intf *flags)

/*-------------------------------------------------------------------------
* Name: scschnk
* Puporse: Call SDsetchunk
* Purpose: Call SDsetchunk
* Inputs: id: SDS access id
* dim_length: chunk dimensions
* comp_type: type of compression
Expand Down Expand Up @@ -1935,7 +1935,7 @@ nscwcchnk(intf *id, intf *start, _fcd char_data)

/*-------------------------------------------------------------------------
* Name: scscompress
* Puporse: Call SDsetcompress
* Purpose: Call SDsetcompress
* Inputs: id: SDS access id
* comp_type: type of compression
* COMP_CODE_NONE = 0
Expand Down Expand Up @@ -2001,7 +2001,7 @@ nscscompress(intf *id, intf *comp_type, intf *comp_prm)

/*-------------------------------------------------------------------------
* Name: scgcompress
* Puporse: Call SDgetcompress
* Purpose: Call SDgetcompinfo
* Inputs: id: SDS access id
* Outputs: comp_type: type of compression
* COMP_CODE_NONE = 0
Expand Down
15 changes: 5 additions & 10 deletions mfhdf/fortran/tszip.f
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,12 @@ program test_szip
. compressed dataset'
err_szip = err_szip + 1
endif
C write(*,*) comp_arg(1), comp_prm_out(1)
C write(*,*) comp_arg(2), comp_prm_out(2)
C write(*,*) comp_prm_out(3)
C write(*,*) comp_prm_out(4)
C write(*,*) comp_prm_out(5)

C if ((comp_arg(1) .ne. comp_prm_out(1)) .or.
C . (comp_arg(2) .ne. comp_prm_out(2))) then
C print *, 'wrong compression parameter'
C err_szip = err_szip + 1
C endif
if ((comp_arg(1) .ne. comp_prm_out(1)) .or.
. (comp_arg(2) .ne. comp_prm_out(2))) then
print *, 'wrong compression parameter'
err_szip = err_szip + 1
endif

C
C Read part of the data back using sfrdata function
Expand Down

0 comments on commit 1188e45

Please sign in to comment.