@@ -1289,11 +1289,7 @@ def write_var_debug_check(self, var, dummy, cldicts, outfile, errcode, errmsg, i
12891289 standard_name = var .get_prop_value ('standard_name' )
12901290 dimensions = var .get_dimensions ()
12911291 active = var .get_prop_value ('active' )
1292- pointer = var .get_prop_value ('pointer' )
12931292 allocatable = var .get_prop_value ('allocatable' )
1294- # The order is important to get the correct local name - DH* not sure ...
1295- #var_dicts = [ self.__group.call_list ] + self.__group.suite_dicts()
1296- var_dicts = cldicts
12971293
12981294 # Need the local name as it comes from the group call list
12991295 # or from the suite, not how it is called in the scheme (var)
@@ -1307,21 +1303,21 @@ def write_var_debug_check(self, var, dummy, cldicts, outfile, errcode, errmsg, i
13071303 if dvar :
13081304 break
13091305 if not dvar :
1310- raise Exception (f"No variable with standard name '{ standard_name } ' in var_dicts " )
1306+ raise Exception (f"No variable with standard name '{ standard_name } ' in cldicts " )
13111307 local_name = dvar .get_prop_value ('local_name' )
13121308
1313- # If the variable is allocatable or a pointer and the intent for the
1314- # scheme is 'out', then we can't test anything because the scheme is
1315- # going to allocate the variable or associate the pointer . We don't have
1316- # this information earlier in add_var_debug_check, therefore need to back
1317- # out here, using the information from the scheme variable (call list).
1309+ # If the variable is allocatable and the intent for the scheme is 'out',
1310+ # then we can't test anything because the scheme is going to allocate
1311+ # the variable. We don't have this information earlier in
1312+ # add_var_debug_check, therefore need to back out here,
1313+ # using the information from the scheme variable (call list).
13181314 svar = self .call_list .find_variable (standard_name = standard_name )
13191315 intent = svar .get_prop_value ('intent' )
1320- if intent == 'out' and ( allocatable or pointer ) :
1316+ if intent == 'out' and allocatable :
13211317 return
13221318
13231319 # Get the condition on which the variable is active
1324- (conditional , _ ) = var .conditional (var_dicts )
1320+ (conditional , _ ) = var .conditional (cldicts )
13251321
13261322 # For scalars, assign to dummy variable if the variable intent is in/inout
13271323 if not dimensions :
@@ -1342,12 +1338,12 @@ def write_var_debug_check(self, var, dummy, cldicts, outfile, errcode, errmsg, i
13421338 if not ':' in dim :
13431339 # In capgen, any true dimension (that is not a single index) does
13441340 # have a colon (:) in the dimension, therefore this is an index
1345- for var_dict in var_dicts :
1341+ for var_dict in cldicts :
13461342 dvar = var_dict .find_variable (standard_name = dim , any_scope = False )
13471343 if dvar is not None :
13481344 break
13491345 if not dvar :
1350- raise Exception (f"No variable with standard name '{ dim } ' in var_dicts " )
1346+ raise Exception (f"No variable with standard name '{ dim } ' in cldicts " )
13511347 dim_lname = dvar .get_prop_value ('local_name' )
13521348 dim_length = 1
13531349 dim_strings .append (dim_lname )
@@ -1374,20 +1370,20 @@ def write_var_debug_check(self, var, dummy, cldicts, outfile, errcode, errmsg, i
13741370 else :
13751371 (ldim , udim ) = dim .split (":" )
13761372 # Get dimension for lower bound
1377- for var_dict in var_dicts :
1373+ for var_dict in cldicts :
13781374 dvar = var_dict .find_variable (standard_name = ldim , any_scope = False )
13791375 if dvar is not None :
13801376 break
13811377 if not dvar :
1382- raise Exception (f"No variable with standard name '{ ldim } ' in var_dicts " )
1378+ raise Exception (f"No variable with standard name '{ ldim } ' in cldicts " )
13831379 ldim_lname = dvar .get_prop_value ('local_name' )
13841380 # Get dimension for upper bound
1385- for var_dict in var_dicts :
1381+ for var_dict in cldicts :
13861382 dvar = var_dict .find_variable (standard_name = udim , any_scope = False )
13871383 if dvar is not None :
13881384 break
13891385 if not dvar :
1390- raise Exception (f"No variable with standard name '{ udim } ' in var_dicts " )
1386+ raise Exception (f"No variable with standard name '{ udim } ' in cldicts " )
13911387 udim_lname = dvar .get_prop_value ('local_name' )
13921388 # Assemble dimensions and bounds for size checking
13931389 dim_length = f'{ udim_lname } -{ ldim_lname } +1'
0 commit comments