Skip to content

Commit

Permalink
This repository contains the code on EGDST software and all necessary…
Browse files Browse the repository at this point in the history
… 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
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
@@ -0,0 +1,11 @@
*.pdf
*.mat
*.asv
*.mex*
*.dvi
*.out
*.zip
*.log

**/build_parts/**
**/*xcodeproj
45 changes: 45 additions & 0 deletions readme.txt
@@ -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

0 comments on commit 4251629

Please sign in to comment.