Ignore:
Timestamp:
Jan 31, 2011, 3:06:56 PM (14 years ago)
Author:
braffert
Message:

Bringing java api up to sync with documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/app-fermi/java/Fermi.java

    r1727 r2076  
    2222    // read the input values and convert to correct units
    2323    String Tstr = driver.get("input.number(temperature).current");
    24     double T = Double.valueOf(rappture.Units.convert(Tstr, "K", false));
     24    double T = Double.valueOf(rappture.Units.convertString(Tstr, "K", false));
    2525    String Efstr = driver.get("input.number(Ef).current");
    26     double Ef = Double.valueOf(rappture.Units.convert(Efstr, "eV", false));
     26    double Ef = Double.valueOf(rappture.Units.convertString(Efstr, "eV", false));
    2727
    2828    // Set the energy range and step size
Note: See TracChangeset for help on using the changeset viewer.