From 42516296d75aea045064f8c3e8b22a4150f89b0a Mon Sep 17 00:00:00 2001 From: Fedor Iskhakov Date: Thu, 16 Jan 2014 22:17:24 +1100 Subject: [PATCH] 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 --- .gitignore | 11 +++++++++++ readme.txt | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .gitignore create mode 100644 readme.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b3f94b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +*.pdf +*.mat +*.asv +*.mex* +*.dvi +*.out +*.zip +*.log + +**/build_parts/** +**/*xcodeproj diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..51adc4c --- /dev/null +++ b/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 +