mapengfei-nwpu / FSIsolver

0 stars 0 forks source link

日志和进度条 #4

Open mapengfei-nwpu opened 3 years ago

mapengfei-nwpu commented 3 years ago

# Print log messages only from the root process in parallel
parameters["std_out_all_processes"] = False

set_log_level(LogLevel.ERROR)

set_log_level(9)

p = Progress("Looping", 100)
while t < T + DOLFIN_EPS:
    p+=1
    set_log_level(LogLevel.PROGRESS)
    set_log_level(LogLevel.ERROR)