← Back to team overview

dolfin team mailing list archive

Naming of functions that print stuff

 

What should we name functions that print stuff? We now have

  list_linear_solver_methods()
  list_lu_solver_methods()
  list_krylov_solver_methods()
  list_krylov_solver_preconditioners()
  list_timings()

Is list_foo good? Other options are

  print_foo()    # Natural, but perhaps a bit vulgar?
  info_foo()     # Goes with the info() function
  display_foo()  # I don't like this one

--
Anders
--- Begin Message ---
------------------------------------------------------------
revno: 6343
committer: Anders Logg <logg@xxxxxxxxx>
branch nick: work
timestamp: Wed 2011-10-19 21:13:52 +0200
message:
  Renames of list_foo functions:
  
    list_linear_solver_methods
    list_lu_solver_methods
    list_krylov_solver_methods
    list_krylov_solver_preconditioners
modified:
  ChangeLog
  dolfin/la/DefaultFactory.cpp
  dolfin/la/DefaultFactory.h
  dolfin/la/EpetraFactory.cpp
  dolfin/la/EpetraFactory.h
  dolfin/la/EpetraKrylovSolver.cpp
  dolfin/la/EpetraKrylovSolver.h
  dolfin/la/EpetraLUSolver.cpp
  dolfin/la/EpetraLUSolver.h
  dolfin/la/ITLKrylovSolver.cpp
  dolfin/la/ITLKrylovSolver.h
  dolfin/la/KrylovSolver.cpp
  dolfin/la/LUSolver.cpp
  dolfin/la/LinearAlgebraFactory.h
  dolfin/la/LinearSolver.cpp
  dolfin/la/MTL4Factory.h
  dolfin/la/PETScFactory.cpp
  dolfin/la/PETScFactory.h
  dolfin/la/PETScKrylovSolver.cpp
  dolfin/la/PETScKrylovSolver.h
  dolfin/la/PETScLUSolver.cpp
  dolfin/la/PETScLUSolver.h
  dolfin/la/PETScPreconditioner.cpp
  dolfin/la/PETScPreconditioner.h
  dolfin/la/TrilinosPreconditioner.cpp
  dolfin/la/TrilinosPreconditioner.h
  dolfin/la/solve.cpp
  dolfin/la/solve.h
  dolfin/la/uBLASFactory.h
  dolfin/la/uBLASKrylovSolver.cpp
  dolfin/la/uBLASKrylovSolver.h
  site-packages/dolfin/cppimports.py
The size of the diff (1435 lines) is larger than your specified limit of 1000 lines

--
lp:dolfin
https://code.launchpad.net/~dolfin-core/dolfin/main

Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription

--- End Message ---

Follow ups