@@ -232,9 +232,6 @@ def container(self):
232232 '''
233233 return self ._container
234234
235- def __str__ (self ):
236- return "PSy"
237-
238235 @property
239236 def invokes (self ):
240237 ''':returns: the list of invokes.
@@ -310,9 +307,6 @@ def __init__(self, alg_calls, invoke_cls, psy):
310307 self .invoke_map [my_invoke .name ] = my_invoke
311308 self .invoke_list .append (my_invoke )
312309
313- def __str__ (self ):
314- return "Invokes object containing " + str (self .names )
315-
316310 @property
317311 def psy (self ):
318312 '''
@@ -431,17 +425,6 @@ def __init__(self, alg_invocation, idx, schedule_class, invokes):
431425 # literals have no name
432426 pass
433427
434- # work out the unique dofs required in this subroutine
435- self ._dofs = {}
436- for kern_call in self ._schedule .coded_kernels ():
437- dofs = kern_call .arguments .dofs
438- for dof in dofs :
439- if dof not in self ._dofs :
440- # Only keep the first occurrence for the moment. We will
441- # need to change this logic at some point as we need to
442- # cope with writes determining the dofs that are used.
443- self ._dofs [dof ] = [kern_call , dofs [dof ][0 ]]
444-
445428 def __str__ (self ):
446429 return self ._name + "(" + ", " .join ([str (arg ) for arg in
447430 self ._alg_unique_args ])+ ")"
@@ -850,65 +833,6 @@ def args(self):
850833 base method and simply return our argument. '''
851834 return [self ._field ]
852835
853- def check_vector_halos_differ (self , node ):
854- '''Helper method which checks that two halo exchange nodes (one being
855- self and the other being passed by argument) operating on the
856- same field, both have vector fields of the same size and use
857- different vector indices. If this is the case then the halo
858- exchange nodes do not depend on each other. If this is not the
859- case then an internal error will have occured and we raise an
860- appropriate exception.
861-
862- :param node: a halo exchange which should exchange the same field as \
863- self.
864- :type node: :py:class:`psyclone.psyGen.HaloExchange`
865- :raises GenerationError: if the argument passed is not a halo exchange.
866- :raises GenerationError: if the field name in the halo exchange \
867- passed in has a different name to the field \
868- in this halo exchange.
869- :raises GenerationError: if the field in this halo exchange is not a \
870- vector field
871- :raises GenerationError: if the vector size of the field in this halo \
872- exchange is different to vector size of the \
873- field in the halo exchange passed by argument.
874- :raises GenerationError: if the vector index of the field in this \
875- halo exchange is the same as the vector \
876- index of the field in the halo exchange \
877- passed by argument.
878-
879- '''
880-
881- if not isinstance (node , HaloExchange ):
882- raise GenerationError (
883- "Internal error, the argument passed to "
884- "HaloExchange.check_vector_halos_differ() is not "
885- "a halo exchange object" )
886-
887- if self .field .name != node .field .name :
888- raise GenerationError (
889- f"Internal error, the halo exchange object passed to "
890- f"HaloExchange.check_vector_halos_differ() has a different "
891- f"field name '{ node .field .name } ' to self '{ self .field .name } '" )
892-
893- if self .field .vector_size <= 1 :
894- raise GenerationError (
895- "Internal error, HaloExchange.check_vector_halos_differ() "
896- "a halo exchange depends on another halo exchange but the "
897- f"vector size of field '{ self .field .name } ' is 1" )
898-
899- if self .field .vector_size != node .field .vector_size :
900- raise GenerationError (
901- f"Internal error, HaloExchange.check_vector_halos_differ() "
902- f"a halo exchange depends on another halo exchange but the "
903- f"vector sizes for field '{ self .field .name } ' differ" )
904-
905- if self .vector_index == node .vector_index :
906- raise GenerationError (
907- f"Internal error, HaloExchange.check_vector_halos_differ() "
908- f"a halo exchange depends on another halo exchange but both "
909- f"vector id's ('{ self .vector_index } ') of field "
910- f"'{ self .field .name } ' are the same" )
911-
912836 def node_str (self , colour = True ):
913837 '''
914838 Returns the name of this node with (optional) control codes
0 commit comments