MeteoSwiss-APN / serialbox

Data serialization library and tools for C/C++ and Fortran
BSD 2-Clause "Simplified" License
2 stars 6 forks source link

Restore register directive type checking #53

Closed clementval closed 8 years ago

clementval commented 8 years ago

When using a register directive, there is an error if the given type is not valid. This error was really not clear for the user. I saw that some code was commented so I removed it and put another check for that problem with the correct error message.

Correct usage

!$ser register rad_czmls3d real 1 1 ke_soil+1 1 0 0 1 0 0 0 0 0 

Bad usage

!$ser register rad_czmls3d 1 1 ke_soil+1 1 0 0 1 0 0 0 0 0 
pspoerri commented 8 years ago

:+1: