New and better way to handle NC_LONG/PIO_LONG

Abierto
#1,256 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
c
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C
Estrellas
162
Forks
60
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NCAR/ParallelIO

Todos los issues de NCAR/ParallelIO

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.