New and better way to handle NC_LONG/PIO_LONG

Đang mở
#1,256 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
data

Hướng nghiên cứu

Search the ParallelIO source for NC_LONG and the existing special handling around netCDF long types. Compare that code with netCDF's build-time choice of NC_INT or NC_INT64, then identify the PIO paths that must use the simpler approach. Done means PIO handles NC_LONG consistently without the current special-case code and the project still builds and tests successfully.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

NetCDF (and therefor PIO) have a LONG type, which is awkward, because, uniquely for netCDF types, it is different sizes on different machines. (It is the size of long int, which is usually 64 but may be 32 bits).

So there is some code in PIO do deal with this dumb LONG type.

When I started working on the netCDF code, I saw that there is a better way of coping with LONG, much simpler. I don't know if this is an improvement on what I left with netCDF, or if this is actually my code, and I just came up with something better last time around.

But it is better, and I need to make sure that PIO is using it because it makes everything easier. netCDF just sets NC_LONG to be either NC_INT or NC_INT64 and build time. Then there is no need for special code to code with long.

Ngôn ngữ chính
C
Star
162
Fork
60
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NCAR/ParallelIO

Tất cả issue của NCAR/ParallelIO

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.