New and better way to handle NC_LONG/PIO_LONG

Aperta
#1,256 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C
Stelle
162
Fork
60
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NCAR/ParallelIO

Tutte le issue di NCAR/ParallelIO

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.