dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #13212
[HG DOLFIN] Add code formatting script, currently only looking for camelCaps
One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.
changeset: 6031:b5c4f7287dea44ebb34d88127e66fdeeeaaef3cd
tag: tip
user: Anders Logg <logg@xxxxxxxxx>
date: Mon Apr 27 09:59:12 2009 +0200
files: dolfin/swig/numpy_typemaps.i scripts/formatcode
description:
Add code formatting script, currently only looking for camelCaps
(and missing camelCapsWithMoreThanOneCapitalizedWord).
changeset: 6030:4fe9d95949b6d76baecea505bb877ca0cd68284a
user: Anders Logg <logg@xxxxxxxxx>
date: Mon Apr 27 09:48:13 2009 +0200
files: ChangeLog scripts/formatcode
description:
Update ChangeLog
changeset: 6029:1d2208ec2bb25a0a4185244b276e0c7c79f2927a
user: Anders Logg <logg@xxxxxxxxx>
date: Mon Apr 27 09:46:35 2009 +0200
files: demo/la/eigensolver/cpp/main.cpp demo/la/eigensolver/python/demo.py demo/ode/courtemanche/cpp/main.cpp demo/ode/stiff/cpp/main.cpp demo/pde/cahn-hilliard/cpp/CahnHilliard2D.h demo/pde/cahn-hilliard/cpp/CahnHilliard3D.h demo/pde/cahn-hilliard/cpp/main.cpp demo/pde/curl-curl/cpp/EddyCurrents.h demo/pde/curl-curl/cpp/EddyCurrents.ufl demo/pde/curl-curl/cpp/main.cpp demo/pde/curl-curl/python/demo.py demo/pde/dielectric/python/demo.py demo/pde/waveguide/cpp/main.cpp demo/pde/waveguide/python/demo.py demo/plot/python/demo.py dolfin/ale/ALE.cpp dolfin/ale/HarmonicSmoothing.cpp dolfin/ale/TransfiniteInterpolation.cpp dolfin/ale/TransfiniteInterpolation.h dolfin/common/Timer.h dolfin/fem/Assembler.cpp dolfin/fem/DirichletBC.cpp dolfin/fem/DofMap.cpp dolfin/fem/DofMap.h dolfin/fem/DofMapBuilder.cpp dolfin/fem/EqualityBC.cpp dolfin/fem/PeriodicBC.cpp dolfin/fem/SparsityPatternBuilder.cpp dolfin/fem/pAssembler.cpp dolfin/fem/pAssembler.h dolfin/function/FunctionSpace.cpp dolfin/function/SpecialFunctions.cpp dolfin/graph/DirectedClique.cpp dolfin/graph/Graph.cpp dolfin/graph/Graph.h dolfin/graph/GraphBuilder.cpp dolfin/graph/GraphEditor.cpp dolfin/graph/GraphEditor.h dolfin/graph/GraphPartition.cpp dolfin/graph/UndirectedClique.cpp dolfin/io/MFile.cpp dolfin/io/NewXMLFile.cpp dolfin/io/NewXMLGraph.cpp dolfin/io/NewXMLLocalMeshData.cpp dolfin/io/NewXMLMesh.cpp dolfin/io/PVTKFile.cpp dolfin/io/PVTKFile.h dolfin/io/RAWFile.cpp dolfin/io/VTKFile.cpp dolfin/io/XMLBLASFormData.cpp dolfin/io/XMLBLASFormData.h dolfin/io/XMLFile.cpp dolfin/io/XMLFile.h dolfin/io/XMLGraph.cpp dolfin/io/XMLGraph.h dolfin/io/XMLHandler.cpp dolfin/io/XMLLocalMeshData.cpp dolfin/io/XMLLocalMeshData.h dolfin/io/XMLMatrix.cpp dolfin/io/XMLMatrix.h dolfin/io/XMLMesh.cpp dolfin/io/XMLMesh.h dolfin/io/XMLMeshFunction.cpp dolfin/io/XMLMeshFunction.h dolfin/io/XMLObject.cpp dolfin/io/XMLObject.h dolfin/io/XMLParameterList.cpp dolfin/io/XMLParameterList.h dolfin/io/XMLVector.cpp dolfin/io/XMLVector.h dolfin/io/XMLVectorMapping.cpp dolfin/io/XMLVectorMapping.h dolfin/io/XYZFile.cpp dolfin/la/CholmodCholeskySolver.cpp dolfin/la/CholmodCholeskySolver.h dolfin/la/EpetraPreconditioner.cpp dolfin/la/EpetraPreconditioner.h dolfin/la/LUSolver.h dolfin/la/PETScKrylovSolver.cpp dolfin/la/PETScKrylovSolver.h dolfin/la/PETScMatrix.cpp dolfin/la/PETScMatrix.h dolfin/la/PETScPreconditioner.cpp dolfin/la/PETScPreconditioner.h dolfin/la/SLEPcEigenSolver.cpp dolfin/la/SLEPcEigenSolver.h dolfin/la/SparsityPattern.cpp dolfin/la/SparsityPattern.h dolfin/la/UmfpackLUSolver.cpp dolfin/la/UmfpackLUSolver.h dolfin/la/uBLASKrylovSolver.cpp dolfin/la/uBLASKrylovSolver.h dolfin/log/Logger.cpp dolfin/log/Logger.h dolfin/mesh/BoundaryComputation.cpp dolfin/mesh/BoundaryComputation.h dolfin/mesh/BoundaryMesh.cpp dolfin/mesh/Box.cpp dolfin/mesh/Cell.h dolfin/mesh/CellType.cpp dolfin/mesh/CellType.h dolfin/mesh/DynamicMeshEditor.cpp dolfin/mesh/DynamicMeshEditor.h dolfin/mesh/GTSInterface.cpp dolfin/mesh/GTSInterface.h dolfin/mesh/Interval.cpp dolfin/mesh/IntervalCell.cpp dolfin/mesh/IntervalCell.h dolfin/mesh/LocalMeshCoarsening.cpp dolfin/mesh/LocalMeshCoarsening.h dolfin/mesh/LocalMeshRefinement.cpp dolfin/mesh/MPIMeshCommunicator.cpp dolfin/mesh/MPIMeshCommunicator.h dolfin/mesh/Mesh.cpp dolfin/mesh/Mesh.h dolfin/mesh/MeshEditor.cpp dolfin/mesh/MeshEditor.h dolfin/mesh/MeshEntity.h dolfin/mesh/MeshHierarchyAlgorithms.cpp dolfin/mesh/MeshHierarchyAlgorithms.h dolfin/mesh/MeshOrdering.cpp dolfin/mesh/MeshPartitioning.cpp dolfin/mesh/PointCell.cpp dolfin/mesh/PointCell.h dolfin/mesh/Rectangle.cpp dolfin/mesh/RivaraRefinement.cpp dolfin/mesh/RivaraRefinement.h dolfin/mesh/SubDomain.cpp dolfin/mesh/SubMesh.cpp dolfin/mesh/TetrahedronCell.cpp dolfin/mesh/TetrahedronCell.h dolfin/mesh/TopologyComputation.cpp dolfin/mesh/TopologyComputation.h dolfin/mesh/TriangleCell.cpp dolfin/mesh/TriangleCell.h dolfin/mesh/UniformMeshRefinement.cpp dolfin/mesh/UniformMeshRefinement.h dolfin/mesh/UnitCircle.cpp dolfin/mesh/UnitCube.cpp dolfin/mesh/UnitInterval.cpp dolfin/mesh/UnitSphere.cpp dolfin/mesh/UnitSquare.cpp dolfin/mf/MatrixFactory.cpp dolfin/nls/NewtonSolver.cpp dolfin/nls/NewtonSolver.h dolfin/ode/Adaptivity.cpp dolfin/ode/Controller.cpp dolfin/ode/Controller.h dolfin/ode/Method.cpp dolfin/ode/Method.h dolfin/ode/MonoAdaptiveTimeSlab.cpp dolfin/ode/MonoAdaptiveTimeSlab.h dolfin/ode/MultiAdaptiveFixedPointSolver.cpp dolfin/ode/MultiAdaptiveJacobian.cpp dolfin/ode/MultiAdaptiveNewtonSolver.cpp dolfin/ode/MultiAdaptiveTimeSlab.cpp dolfin/ode/MultiAdaptiveTimeSlab.h dolfin/ode/MultiAdaptivity.cpp dolfin/ode/MultiAdaptivity.h dolfin/ode/TimeSlabSolver.cpp dolfin/ode/TimeSlabSolver.h dolfin/ode/cGqMethod.cpp dolfin/ode/cGqMethod.h dolfin/ode/dGqMethod.cpp dolfin/ode/dGqMethod.h dolfin/parameter/Parametrized.cpp dolfin/parameter/Parametrized.h dolfin/plot/FunctionPlotData.cpp dolfin/quadrature/GaussQuadrature.cpp dolfin/quadrature/GaussQuadrature.h dolfin/quadrature/GaussianQuadrature.cpp dolfin/quadrature/GaussianQuadrature.h dolfin/quadrature/LobattoQuadrature.cpp dolfin/quadrature/LobattoQuadrature.h dolfin/quadrature/RadauQuadrature.cpp dolfin/quadrature/RadauQuadrature.h dolfin/swig/dolfin_docstrings.i dolfin/swig/dolfin_headers.i dolfin/swig/dolfin_la_post.i dolfin/swig/dolfin_mesh_pre.i dolfin/swig/generate_docstrings.py
description:
Change all camelCaps function names to camel_caps. Lots of changes
everywhere, most notably
mesh.numVertices() --> mesh.num_vertices()
mesh.numCells() --> mesh.num_cells()
Summary of changes:
addCell --> add_cell (114 occurences)
addEdge --> add_edge (7 occurences)
addEntities --> add_entities (3 occurences)
addVertex --> add_vertex (62 occurences)
allocData --> alloc_data (3 occurences)
assembleCells --> assemble_cells (3 occurences)
bisectMarked --> bisect_marked (3 occurences)
cellType --> cell_type (38 occurences)
checkStatus --> check_status (10 occurences)
checkType --> check_type (4 occurences)
childNodes --> child_nodes (5 occurences)
chooseSolver --> choose_solver (6 occurences)
chooseTolerance --> choose_tolerance (3 occurences)
closeCell --> close_cell (2 occurences)
closeFile --> close_file (11 occurences)
closeGraph --> close_graph (3 occurences)
closeMesh --> close_mesh (7 occurences)
coarsenCell --> coarsen_cell (4 occurences)
collapseEdge --> collapse_edge (3 occurences)
computeBasis --> compute_basis (6 occurences)
computeBoundary --> compute_boundary (3 occurences)
computeConnectivity --> compute_connectivity (7 occurences)
computeCurrents --> compute_currents (2 occurences)
computeDerivatives --> compute_derivatives (3 occurences)
computeEntities --> compute_entities (6 occurences)
computeIntersection --> compute_intersection (1 occurences)
computePoints --> compute_points (8 occurences)
computeQuadrature --> compute_quadrature (6 occurences)
computeResiduals --> compute_residuals (3 occurences)
computeTranspose --> compute_transpose (1 occurences)
computeWeights --> compute_weights (9 occurences)
countDependencies --> count_dependencies (6 occurences)
countEntities --> count_entities (4 occurences)
coverNext --> cover_next (5 occurences)
coverSlab --> cover_slab (4 occurences)
coverTime --> cover_time (5 occurences)
createBox --> create_box (10 occurences)
createEntities --> create_entities (12 occurences)
currentVertex --> current_vertex (3 occurences)
dBdt --> d_bdt (13 occurences)
dCell --> d_cell (10 occurences)
distributeCommon --> distribute_common (4 occurences)
documentElement --> document_element (2 occurences)
dofMaps --> dof_maps (3 occurences)
edgeWeights --> edge_weights (3 occurences)
endDocument --> end_document (3 occurences)
endElement --> end_element (23 occurences)
endVector --> end_vector (3 occurences)
evaluateMarks --> evaluate_marks (3 occurences)
exportMesh --> export_mesh (3 occurences)
facetArea --> facet_area (13 occurences)
facetAread --> facet_aread (1 occurences)
facetType --> facet_type (2 occurences)
factorizedSolve --> factorized_solve (16 occurences)
findEdge --> find_edge (16 occurences)
firstChild --> first_child (7 occurences)
getEigenpair --> get_eigenpair (5 occurences)
getEigenvalue --> get_eigenvalue (9 occurences)
getIteration --> get_iteration (2 occurences)
getMap --> get_map (2 occurences)
getType --> get_type (6 occurences)
ghatCell --> ghat_cell (4 occurences)
handlerMethod --> handler_method (2 occurences)
hermiteFunction --> hermite_function (3 occurences)
importMesh --> import_mesh (3 occurences)
inCell --> in_cell (3 occurences)
initCells --> init_cells (25 occurences)
initEdges --> init_edges (6 occurences)
initForm --> init_form (3 occurences)
initRange --> init_range (3 occurences)
initTranspose --> init_transpose (2 occurences)
initVertices --> init_vertices (31 occurences)
meanValue --> mean_value (3 occurences)
meshFunction --> mesh_function (1 occurences)
muFactor --> mu_factor (43 occurences)
nFull --> n_full (2 occurences)
nodeType --> node_type (2 occurences)
numCells --> num_cells (59 occurences)
numEdges --> num_edges (15 occurences)
numEntities --> num_entities (57 occurences)
numFaces --> num_faces (2 occurences)
numFacets --> num_facets (5 occurences)
numVertices --> num_vertices (73 occurences)
openFile --> open_file (11 occurences)
orderEntities --> order_entities (1 occurences)
pAssembler --> p_assembler (24 occurences)
parentNode --> parent_node (5 occurences)
parseBool --> parse_bool (3 occurences)
parseFile --> parse_file (13 occurences)
parseInt --> parse_int (10 occurences)
parseReal --> parse_real (18 occurences)
parseString --> parse_string (13 occurences)
processRange --> process_range (2 occurences)
propagateDependencies --> propagate_dependencies (3 occurences)
propagateFacets --> propagate_facets (3 occurences)
pvdFile --> pvd_file (24 occurences)
pvtuFile --> pvtu_file (39 occurences)
readArray --> read_array (6 occurences)
readBoundary --> read_boundary (3 occurences)
readCells --> read_cells (6 occurences)
readEdge --> read_edge (5 occurences)
readEdges --> read_edges (5 occurences)
readEntities --> read_entities (5 occurences)
readEntry --> read_entry (10 occurences)
readForm --> read_form (3 occurences)
readGraph --> read_graph (3 occurences)
readInterior --> read_interior (3 occurences)
readInterval --> read_interval (6 occurences)
readMatrix --> read_matrix (3 occurences)
readMesh --> read_mesh (6 occurences)
readParameter --> read_parameter (3 occurences)
readParameters --> read_parameters (12 occurences)
readRow --> read_row (3 occurences)
readTerm --> read_term (4 occurences)
readTetrahedron --> read_tetrahedron (6 occurences)
readTriangle --> read_triangle (6 occurences)
readVertex --> read_vertex (9 occurences)
readVertices --> read_vertices (11 occurences)
refineCell --> refine_cell (11 occurences)
refineMesh --> refine_mesh (3 occurences)
refineSimplex --> refine_simplex (3 occurences)
registerTiming --> register_timing (3 occurences)
removeCell --> remove_cell (3 occurences)
schemaFile --> schema_file (5 occurences)
selectPreconditioner --> select_preconditioner (4 occurences)
setRow --> set_row (3 occurences)
setSolver --> set_solver (6 occurences)
setSpectrum --> set_spectrum (3 occurences)
setTolerance --> set_tolerance (3 occurences)
setType --> set_type (6 occurences)
solveKrylov --> solve_krylov (5 occurences)
startDocument --> start_document (3 occurences)
startElement --> start_element (23 occurences)
startVector --> start_vector (3 occurences)
testProblem --> test_problem (18 occurences)
uCell --> u_cell (10 occurences)
unrefineMesh --> unrefine_mesh (3 occurences)
updateHarmonic --> update_harmonic (6 occurences)
updateSimple --> update_simple (2 occurences)
vertexWeights --> vertex_weights (3 occurences)
writeReport --> write_report (4 occurences)
xmlObject --> xml_object (40 occurences)
----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin