Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This repository contains the code on EGDST software and all necessary…
… installation instructions packaged for the lecture on EGM methods at ZICE 2014. Composed and written mainly by Fedor Iskhakov, fediskhakov@gmail.com, fedor.iskh.ru
- Loading branch information
Fedor Iskhakov
committed
Jan 16, 2014
0 parents
commit 4251629
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*.mat | ||
*.asv | ||
*.mex* | ||
*.dvi | ||
*.out | ||
*.zip | ||
*.log | ||
|
||
**/build_parts/** | ||
**/*xcodeproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
EGDST SOFTWARE | ||
|
||
ZICE2014 release | ||
|
||
By: Fedor Iskhakov, fediskhakov@gmail.com http://fedor.iskh.ru | ||
|
||
____________________________________________________________________________________________________________________ | ||
|
||
This collection of files contains the latest version of the EGDST software and some code snippets prepared for | ||
the ZICE 2014. | ||
|
||
In particular: | ||
|
||
1. Directory "init_setup" contains some instructions and simple examples that help to establish if C compiler and | ||
other components are properly installed in the system so that it can be used to run EGDST | ||
2. Directory "matlab_examples" contain some Matlab code to illustrate the principles of Endogenous Gridpoint Methods | ||
3. Directory "@egdstmodel" contains all the files of the EGDST software package | ||
4. Directory "egdst_examples" contains the examples of use of EGDST software | ||
|
||
|
||
____________________________________________________________________________________________________________________ | ||
INSTALLATION | ||
____________________________________________________________________________________________________________________ | ||
|
||
EGDST software requires C files to be compiled on the system, therefore the first step is to install C compiler and | ||
make sure it works. Installation of C compiler is specific to the system, see | ||
http://www.mathworks.com.au/help/matlab/ref/mex.html | ||
|
||
Folder "init_setup" contains a simple C code file test.c for testing the mex setup. Browse into this folder and run | ||
mex test.c | ||
test | ||
|
||
To enable OpenMP support, make sure you are using OpenMP supporting compiler and to test the environment run | ||
mex text.c CFLAGS='\$CFLAGS -fopenmp' LDFLAGS='\$LDFLAGS -fopenmp' | ||
test | ||
The output should mension how many cores are available for OpenMP, if the output is identical to the run above | ||
OpenMP is not enabled. | ||
|
||
|
||
____________________________________________________________________________________________________________________ | ||
RUNNING | ||
____________________________________________________________________________________________________________________ | ||
|
||
Browse into "egdst_examples" folder, run "start" from Matlab | ||
|