in meshinfo->rectilinear->coordinates[i] = strdup (fp->var_namelist[varid]);
use varid not j for var copy