Skip to content

A simple forward computation

Diego Melgar edited this page Jun 20, 2017 · 17 revisions

Before you begin

  • Install Mudpy. If you've already done this then run git pull from your terminal to make sure you have the up to date latest version with the right example files.
  • Configure MudPy for multiprocessor use, this can sometimes be painful and is NOT a necessary step, but try, it'll make your computations much much faster. Even your crappy laptop has at least 4 cores!

Do you have all the example files?

Look under $MUDPY/examples/forward_modeling/ you should see a listing of 6 files like so:

Ok, open the file nepal.fwd.py this is the main parameter file that you will use to command the program. This file can live anywhere in your system it doesn't really matter where.

Initialize a new project folder tree

In order to make things run smoothly and keep everything organized MudPy uses a very specific fodler structure. THis will be created for you. In the parameter file nepal.fwd.py edit the following lines:

home='/Users/dmelgar/Slip_inv/'
project_name='Nepal_forward_test'

home must already exist and is where all your MudPy projects will be stored. project_name is a name to give this particular project. This will be used to create the fodler structure. Note this is completely independent of where you are storing your .fwd.py parameter files.

Now set the action flags as follows:

init=1 
make_green=0 
make_synthetics=0 
solve=0

You are now ready to run the parameter file to create the folder structure. At your terminal run the python parameter file:

$> python $PATH_TO_FILE/nepal.fwd.py

$PATH_TO_FILE is the path where you are storing the parameter file. After s execution you should now see a new folder structure under home/project_name like so: