New and better way to handle NC_LONG/PIO_LONG

オープン
#1,256 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c
領域
data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C
スター
162
フォーク
60
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NCAR/ParallelIO のほかの issue

NCAR/ParallelIO の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。