-
Notifications
You must be signed in to change notification settings - Fork 1
groups #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
groups #36
Changes from all commits
b02ce09
8aba485
9fa64e4
7b03776
6eb9bf7
27adb26
a2c50d5
2690ef0
877cf41
9075202
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -259,6 +259,10 @@ if [ ! -f "$INSTALL_DIR/lib/libhdf5.a" ]; then | |
| -DHDF5_ENABLE_TESTS=OFF \ | ||
| -DCMAKE_C_BYTE_ORDER=LITTLE_ENDIAN \ | ||
| -DHDF5_DISABLE_COMPILER_WARNINGS=ON \ | ||
| -DHDF5_ENABLE_Z_LIB_SUPPORT=ON \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is redundant |
||
| -DHDF5_ENABLE_ZLIB_SUPPORT=ON \ | ||
| -DALLOW_UNSUPPORTED=ON \ | ||
| -DH5_ZLIB_HEADER="zlib.h" \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't exist |
||
| -DZLIB_ROOT="$INSTALL_DIR" \ | ||
| -DZLIB_INCLUDE_DIR="$INSTALL_DIR/include" \ | ||
| -DZLIB_LIBRARY="$INSTALL_DIR/lib/libz.a" | ||
|
|
@@ -356,6 +360,8 @@ if [ ! -f "$INSTALL_DIR/lib/libnetcdf.a" ]; then | |
| -DBUILD_UTILITIES=OFF \ | ||
| -DBUILD_TESTING=OFF \ | ||
| -DENABLE_TESTS=OFF \ | ||
| -DENABLE_FILTER_DEFLATE=ON \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't exist |
||
| -DENABLE_ZLIB=ON \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is redundant |
||
| -DCMAKE_C_BYTE_ORDER=LITTLE_ENDIAN \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is redundant. IS the default setting |
||
| -DWORDS_BIGENDIAN=OFF \ | ||
| -DHDF5_USE_STATIC_LIBRARIES=ON \ | ||
|
|
@@ -596,6 +602,34 @@ int nc_def_var_endian_wrapper(int ncid, int varid, int endian) { | |
| return nc_def_var_endian(ncid, varid, endian); | ||
| } | ||
|
|
||
| // ========================= | ||
| // Groups | ||
| // ========================= | ||
| EMSCRIPTEN_KEEPALIVE | ||
| int nc_inq_grps_wrapper(int ncid, int* numgrps, int* grpids) { | ||
| return nc_inq_grps(ncid, numgrps, grpids); | ||
| } | ||
|
|
||
| EMSCRIPTEN_KEEPALIVE | ||
| int nc_inq_grp_ncid_wrapper(int ncid, const char* grp_name, int* grp_ncid) { | ||
| return nc_inq_grp_ncid(ncid, grp_name, grp_ncid); | ||
| } | ||
|
|
||
| EMSCRIPTEN_KEEPALIVE | ||
| int nc_inq_grpname_wrapper(int ncid, char* name) { | ||
| return nc_inq_grpname(ncid, name); | ||
| } | ||
|
|
||
| EMSCRIPTEN_KEEPALIVE | ||
| int nc_inq_grp_parent_wrapper(int ncid, int* parent_ncid) { | ||
| return nc_inq_grp_parent(ncid, parent_ncid); | ||
| } | ||
|
|
||
| EMSCRIPTEN_KEEPALIVE | ||
| int nc_inq_grp_full_ncid_wrapper(int ncid, const char* full_name, int* grp_ncid) { | ||
| return nc_inq_grp_full_ncid(ncid, full_name, grp_ncid); | ||
| } | ||
|
|
||
| // ========================= | ||
| // Attributes | ||
| // ========================= | ||
|
|
@@ -976,6 +1010,7 @@ EOF | |
| log "Creating C wrapper for NetCDF functions..." | ||
|
|
||
| log "Compiling WASM module with emcc..." | ||
|
|
||
| check_command emcc netcdf_wrapper.c \ | ||
| -I"$INSTALL_DIR/include" \ | ||
| -L"$INSTALL_DIR/lib" \ | ||
|
|
@@ -991,6 +1026,7 @@ check_command emcc netcdf_wrapper.c \ | |
| -s EXPORTED_FUNCTIONS='["_malloc","_free"]' \ | ||
| -s ALLOW_MEMORY_GROWTH=1 \ | ||
| -s INITIAL_MEMORY=16777216 \ | ||
| -s ERROR_ON_UNDEFINED_SYMBOLS=0 \ | ||
| --pre-js "$PROJECT_ROOT/bindings/pre.js" \ | ||
| --post-js "$PROJECT_ROOT/bindings/post.js" \ | ||
| -O2 \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant. IS the default setting