Changeset 83 for trunk/examples/app-fermi
- Timestamp:
- Oct 5, 2005, 8:17:26 AM (19 years ago)
- Location:
- trunk/examples/app-fermi/fortran
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/app-fermi/fortran/Makefile
r73 r83 14 14 15 15 LIB_DIR = $(RAPPTURE_DIR)/lib 16 LIB_RAPPTURE = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lrappture 16 LIB_RAPPTURE = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lrappture_test 17 17 18 18 all: $(PROGS) -
trunk/examples/app-fermi/fortran/fermi.f
r66 r83 13 13 IMPLICIT NONE 14 14 15 integer rp_lib 16 double precision rp_lib_get_double 15 integer rp_lib, rp_units_convert_dbl, rp_units_add_presets 17 16 18 integer driver 17 integer driver, ok 19 18 double precision T, Ef, kT, Emin, Emax, dE, f, E 20 CHARACTER*100 inFile 19 CHARACTER*100 inFile, strVal 21 20 character*40 xy 22 21 … … 24 23 driver = rp_lib(inFile) 25 24 26 T = rp_lib_get_double(driver, 27 + "input.number(temperature).current") 28 Ef = rp_lib_get_double(driver, 29 + "input.number(Ef).current") 25 ok = rp_units_add_presets("all") 26 27 call rp_lib_get(driver, 28 + "input.number(temperature).current", strVal) 29 ok = rp_units_convert_dbl(strVal,"K",T) 30 31 call rp_lib_get(driver, 32 + "input.number(Ef).current", strVal) 33 ok = rp_units_convert_dbl(strVal,"K",Ef) 30 34 31 35 kT = 8.61734e-5 * T
Note: See TracChangeset
for help on using the changeset viewer.