#1215 add a warning when var_set can't find ref_attribute for variable name (variable doesn't exist) (#1216)

Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>
closes #1215
This commit is contained in:
Scott Fennell 2022-01-18 11:40:59 -06:00 committed by GitHub
parent f073142066
commit d6d7301d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -543,6 +543,8 @@ int var_set_base( const char * var , T value , const char * units ) {
} else {
message_publish(MSG_WARNING,"Cannot assign to %s because io_spec does not allow input\n", var) ;
}
} else {
message_publish(MSG_WARNING,"reference attributes not found for variable %s in call to var_set\n", var) ;
}
return 0 ;
}