Commit 7af5d18e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

write_remap_scrip: abort if no remap weights are available

parent 2cb27cf8
...@@ -135,6 +135,9 @@ void write_remap_scrip(const char *interp_file, int map_type, int submap_type, i ...@@ -135,6 +135,9 @@ void write_remap_scrip(const char *interp_file, int map_type, int submap_type, i
break; break;
} }
if ( rv.num_links == 0 )
cdoAbort("Number of remap links is 0, no remap weights found!");
{ {
size_t filesize; size_t filesize;
size_t nele1, nele2; size_t nele1, nele2;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment