This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Problem running nsbench: global name 'PeriodicBC' is not defined

0 votes

I am trying to run a program from nsbench and get this error. I am using 1.3.0

praveen@praveenetinambp:nsbench$ ./ns cylinder grpc
Problem: Cylinder
Solver:  GRPC
Computing time step according to stability criteria

Number of timesteps: 6002
Size of timestep: 0.00133288903699

Traceback (most recent call last):
  File "./ns", line 141, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./ns", line 124, in main
    u, p = solver.solve(problem)
  File "/private/tmp/nsbench/solvers/grpc.py", line 56, in solve
    if is_periodic(bcp):
  File "/private/tmp/nsbench/solvers/solverbase.py", line 178, in is_periodic
    return all(isinstance(bc, PeriodicBC) for bc in bcs)
  File "/private/tmp/nsbench/solvers/solverbase.py", line 178, in <genexpr>
    return all(isinstance(bc, PeriodicBC) for bc in bcs)
NameError: global name 'PeriodicBC' is not defined
asked May 27, 2014 by praveen FEniCS User (2,760 points)

1 Answer

0 votes
 
Best answer

I had to change PeriodicBC to PeriodicBoundaryComputation.

answered May 27, 2014 by praveen FEniCS User (2,760 points)
...