Changeset 1139 for trunk/examples
- Timestamp:
- Sep 3, 2008 12:01:50 PM (16 years ago)
- Location:
- trunk/examples/app-fermi/matlab/compiled
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/app-fermi/matlab/compiled/Makefile
r1004 r1139 3 3 ${APPNAME}: fermi_main.m fermi.m 4 4 mcc -m -R -nojvm -I /apps/rappture/lib/matlab -o $@ $^ 5 6 all: ${APPNAME} 5 7 6 8 install: ${APPNAME} … … 10 12 # mv readme.txt ../bin/$^.readme 11 13 # LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/apps/rappture/lib `pwd`/../bin/run_$^.sh /apps/matlab/mcr `pwd`/driver.xml `pwd`/../data 12 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/apps/rappture/lib `pwd`/run_$^.sh /apps/matlab/mcr `pwd`/driver.xml 13 rm -f run*.xml 14 echo "Install Successful" 14 simsim --tool tool.xml --driver-only driver.${APPNAME} 15 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/apps/rappture/lib `pwd`/run_$^.sh /apps/matlab/mcr `pwd`/driver.${APPNAME} 16 rm -f run*.xml driver.${APPNAME} 17 @echo "Install Successful" 15 18 16 19 clean: 17 rm -rf ${APPNAME} ${APPNAME}_main.c ${APPNAME}.ctf \ 18 ${APPNAME}.prj ${APPNAME}_mcc_component_data.c run_${APPNAME}.sh \ 19 mccExcludedFiles.log readme.txt ${APPNAME}_mcr 20 rm -rf ${APPNAME} \ 21 ${APPNAME}_main.c \ 22 ${APPNAME}.ctf \ 23 ${APPNAME}.prj \ 24 ${APPNAME}_mcc_component_data.c \ 25 run_${APPNAME}.sh \ 26 mccExcludedFiles.log \ 27 readme.txt \ 28 ${APPNAME}_mcr 20 29 21 30 distclean: clean -
trunk/examples/app-fermi/matlab/compiled/fermi.m
r1004 r1139 1 1 % ---------------------------------------------------------------------- 2 % EXAMPLE: Fermi-Dirac function in Octave.2 % EXAMPLE: Fermi-Dirac function in Matlab. 3 3 % 4 4 % This script represents a newly written application with rappture … … 8 8 % AUTHOR: Michael McLennan, Purdue University 9 9 % AUTHOR: Derrick Kearney, Purdue University 10 % Copyright (c) 2004-200 7Purdue Research Foundation10 % Copyright (c) 2004-2008 Purdue Research Foundation 11 11 % 12 12 % See the file "license.terms" for information on usage and … … 14 14 % ====================================================================== 15 15 16 function retVal=fermi (infile);16 function retVal=fermi; 17 17 18 % open our xml input file.19 lib = rpLib(infile);18 % We open the xml file in the main function and make lib global 19 global lib; 20 20 21 21 % retrieve user specified data out of the input file -
trunk/examples/app-fermi/matlab/compiled/fermi_main.m
r1004 r1139 1 1 function fermi_main(infile) 2 2 3 global lib; 4 3 5 try 4 fermi(infile); 6 lib = rpLib(infile); 7 fermi; 5 8 catch 6 last err9 lastmsg = lasterr 7 10 fid = fopen('errorDetected.txt','wt'); 8 11 fprintf(fid,'1\n'); 12 fprintf(fid,'%s\n',lastmsg); 9 13 fclose(fid); 14 append = 1; 15 rpLibPutString(lib,'output.log',lastmsg,append) 16 rpLibResult(lib,1); 10 17 end
Note: See TracChangeset
for help on using the changeset viewer.