Skip to content

Commit

Permalink
Update fortran module name and move internal codec headers
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrettDMorrison committed Jul 13, 2022
1 parent c13a6c7 commit 05b3f4c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cfp/cfpheader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "zfp/array2.hpp"
#include "zfp/array3.hpp"
#include "zfp/array4.hpp"
#include "zfp/internal/array/zfpheader.hpp"
#include "zfp/internal/codec/zfpheader.hpp"
#include "zfp/internal/cfp/header.h"
#include "zfp/internal/cfp/array1f.h"
#include "zfp/internal/cfp/array1d.h"
Expand Down
4 changes: 2 additions & 2 deletions fortran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ set_property(TARGET zFORp PROPERTY SOVERSION ${ZFP_VERSION_MAJOR})
set_property(TARGET zFORp PROPERTY OUTPUT_NAME ${ZFP_LIBRARY_PREFIX}zFORp)

# install location for module file
install(FILES ${CMAKE_Fortran_MODULE_DIRECTORY}/zforp.mod
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/zfp)
install(FILES ${CMAKE_Fortran_MODULE_DIRECTORY}/zfp.mod
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

# install location for library
install(TARGETS zFORp EXPORT cFORp-targets
Expand Down
4 changes: 2 additions & 2 deletions fortran/zfp.f90
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module zFORp
module zfp

use, intrinsic :: iso_c_binding, only: c_int, c_int64_t, c_size_t, c_ptrdiff_t, c_double, c_ptr, c_null_ptr, c_loc
implicit none
Expand Down Expand Up @@ -1113,4 +1113,4 @@ function zFORp_read_header(stream, field, mask) result(num_bits_read) bind(c, na
num_bits_read = zfp_read_header(stream%object, field%object, int(mask, c_int))
end function zFORp_read_header

end module zFORp
end module zfp
2 changes: 1 addition & 1 deletion include/zfp/codec/zfpcodec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class zfp_base {
static const zfp_type type = zfp::trait<Scalar>::type; // scalar type

// zfp::codec::zfp_base::header class for array (de)serialization
#include "zfp/internal/array/zfpheader.hpp"
#include "zfp/internal/codec/zfpheader.hpp"

protected:
// deep copy
Expand Down
File renamed without changes.

0 comments on commit 05b3f4c

Please sign in to comment.