Преглед на файлове

Check signature of add_MT before creation

Yentl Van Tendeloo преди 7 години
родител
ревизия
466a581719
променени са 2 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. BIN
      bootstrap/bootstrap.m.gz
  2. 3 0
      bootstrap/core_algorithm.alc

BIN
bootstrap/bootstrap.m.gz


+ 3 - 0
bootstrap/core_algorithm.alc

@@ -1779,6 +1779,9 @@ String function cmd_transformation_add_MT(source_models : Element, target_models
 	target = dict_create()
 	to_ramify = set_create()
 
+	if (dict_len(source_models) + dict_len(target_models) == 0):
+		return "Model transformation needs at least one formalism in its input or output signature!"!
+
 	keys = dict_keys(source_models)
 	while (set_len(keys) > 0):
 		key = set_pop(keys)