Ignore:
Timestamp:
Dec 12, 2011, 2:36:51 PM (11 years ago)
Author:
neweyv
Message:

Additional information written to the log file. This information will assist in creating an algorithm to predict the runtime of ANUGA given various parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/pmesh/mesh_interface.py

    r8124 r8279  
    77from anuga.geometry.polygon import polylist2points_verts
    88import anuga.utilities.log as log
    9 
     9import datetime
    1010
    1111# This is due to pmesh being a package and a module and
     
    8787    """
    8888   
     89   
     90    if verbose: log.resource_usage_timing(log.logging.INFO, "start_")
     91    if verbose: log.timingInfo("maximum_triangle_area, " + str(maximum_triangle_area))
     92    if verbose: log.timingInfo("minimum_triangle_angle, " + str(minimum_triangle_angle))
     93    if verbose: log.timingInfo("startMesh, '%s'" % log.CurrentDateTime())
     94   
    8995    # Build arguments and keyword arguments for use with caching or apply.
    9096    args = (bounding_polygon,
     
    121127                  args, kwargs)
    122128
     129
     130   
    123131    return m   
    124132       
     
    330338    # recompute as it has meshfile as a dependency
    331339
    332     # Decide whether to store this mesh or return it   
     340    # Decide whether to store this mesh or return it
     341   
     342   
    333343    if filename is None:
    334344        return m
    335345    else:
    336346        if verbose: log.critical("Generating mesh to file '%s'" % filename)
     347     
    337348        m.generate_mesh(minimum_triangle_angle=minimum_triangle_angle,
    338349                        verbose=verbose)
    339350        m.export_mesh_file(filename)
    340 
    341 
     351       
Note: See TracChangeset for help on using the changeset viewer.