@@ -124,23 +124,19 @@ def applyDefaults(self):
124124
125125 if "MAPPING_MODES" not in self ._ConfigContent :
126126 self ._ConfigContent ["MAPPING_MODES" ] = "NO"
127- print ("WARNING: MAPPING_MODES keyword was not found in the configuration file of the interface, setting to NO" )
127+ print ("MAPPING_MODES keyword was not found in the configuration file of the interface, setting to NO" )
128128
129129 if "IMPOSED_MOTION" not in self ._ConfigContent :
130130 self ._ConfigContent ["IMPOSED_MOTION" ] = "NO"
131- print ("WARNING: IMPOSED_MOTION keyword was not found in the configuration file of the interface, setting to NO" )
131+ print ("IMPOSED_MOTION keyword was not found in the configuration file of the interface, setting to NO" )
132132
133133 if self ._ConfigContent ["IMPOSED_MOTION" ] == "YES" :
134134 if self ._ConfigContent ["AITKEN_RELAX" ] != "STATIC" or self ._ConfigContent ["AITKEN_PARAM" ] != 1.0 :
135- print ("WARNING: Setting the Aitken parameter as static and equal to 1 for IMPOSED solver" )
136- self ._ConfigContent ["AITKEN_RELAX" ] = "STATIC"
137- self ._ConfigContent ["AITKEN_PARAM" ] = 1.0
135+ raise Exception ("When imposing motion, the Aitken parameter must be static and equal to 1" )
138136
139137 if self ._ConfigContent ["RESTART_SOL" ] == "YES" :
140138 if self ._ConfigContent ["TIME_TRESHOLD" ] != - 1 :
141- print ("WARNING: Setting the time threshold to -1 for immediate coupling when using restart" )
142- self ._ConfigContent ["TIME_TRESHOLD" ] = - 1
139+ raise Exception ("When restarting a simulation, the time threshold must be -1 for immediate coupling" )
143140
144141 if self ._ConfigContent ["MAPPING_MODES" ] == "YES" and self ._ConfigContent ["CSD_SOLVER" ]!= "NATIVE" :
145- self ._ConfigContent ["CSD_SOLVER" ]= "NATIVE"
146- print ("WARNING: It has been requested to map modes, but the native solver was not selected. It is being selected automatically" )
142+ raise Exception ("Mapping modes only works with the native solver" )
0 commit comments