<s> import time <EOL> def rebuild ( self ) : <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> for grid in self . griddict . values ( ) : <EOL> if grid . rcid == <NUM_LIT:0> or grid . rcid == '<STR_LIT>' : <EOL> grid . rebuild ( ) <EOL> loop = True <EOL> if loop : <EOL> all_done = <NUM_LIT:0> <EOL> while all_done < <NUM_LIT:3> : <EOL> all_done += <NUM_LIT:1> <EOL> for grid in self . griddict . values ( ) : <EOL> if not grid . rebuilded : <EOL> if grid . check_to_rebuild ( ) : <EOL> grid . rebuild ( ) <EOL> if all_done > <NUM_LIT:0> : <EOL> all_done = <NUM_LIT:0> <EOL> for coord in self . coorddict . values ( ) : <EOL> if not coord . rebuilded : <EOL> if coord . check_to_rebuild ( ) : <EOL> coord . rebuild ( ) <EOL> if all_done > <NUM_LIT:0> : <EOL> all_done = <NUM_LIT:0> <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> for prop in self . propdict . values ( ) : <EOL> prop . rebuild ( ) <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> for elem in self . elemdict . values ( ) : <EOL> elem . rebuild ( ) <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> for sub in self . subcases . values ( ) : <EOL> sub . rebuild ( ) <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> for load in self . loaddict . values ( ) : <EOL> load . rebuild ( ) <EOL> load . add2grid ( ) <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> print time . ctime ( ) + '<STR_LIT>' <EOL> for cons in self . consdict . values ( ) : <EOL> cons . add2grid ( self ) <EOL> print time . ctime ( ) + '<STR_LIT>' </s>
