Changeset 2686 for trunk/src


Ignore:
Timestamp:
11/15/12 23:28:32 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: run sdgrid task with plot=True

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Fix for plotter failure.


Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2684 r2686  
    20842084}
    20852085
     2086vector<int> STGrid::getResultantMapSize()
     2087{
     2088  vector<int> r(2);
     2089  r[0] = nx_;
     2090  r[1] = ny_;
     2091  return r;
     2092}
     2093
     2094vector<double> STGrid::getResultantCellSize()
     2095{
     2096  vector<double> r(2);
     2097  r[0] = cellx_;
     2098  r[1] = celly_;
     2099  return r;
     2100}
     2101
    20862102// STGrid2
    20872103STGrid2::STGrid2()
  • trunk/src/STGrid.h

    r2671 r2686  
    7777  // support function to know how grid function looks like
    7878  vector<float> getConvFunc();
     79
     80  // for plotting
     81  vector<int> getResultantMapSize();
     82  vector<double> getResultantCellSize();
    7983
    8084//private:
  • trunk/src/python_STGrid.cpp

    r2671 r2686  
    4343    .def("_save", &STGrid::saveData)
    4444    .def("_getfunc", &STGrid::getConvFunc)
     45    .def("_get_resultant_map_size", &STGrid::getResultantMapSize)
     46    .def("_get_resultant_cell_size", &STGrid::getResultantCellSize)
    4547    ;
    4648
Note: See TracChangeset for help on using the changeset viewer.