|
| 1 | +CSEM Version of ModEM |
| 2 | +---------------------- |
| 3 | + |
| 4 | +.. warning:: |
| 5 | + |
| 6 | + The CSEM version of ModEM is not fully validated and has only been used in |
| 7 | + some instances. We cannot guarantee correct or accurately results with it. |
| 8 | + |
| 9 | +Please see the warning above. The CSEM version is really not yet ready for |
| 10 | +production, but we are providing it here for future development and testing. |
| 11 | + |
| 12 | +The CSEM version of ModEM is available on the ``CSEM`` branch of ModEM: |
| 13 | + |
| 14 | +.. code-block:: bash |
| 15 | +
|
| 16 | + $ git checkout CSEM |
| 17 | +
|
| 18 | +The CSEM version requires one of two submodules that are not apart of ModEM: |
| 19 | + |
| 20 | +* Dipole1D - Apart of OCCAM1DCSEM - `provided by SCRIPPS <_dipole1d>`_. |
| 21 | +* EM1D - Provided by Rita Streich's - But not yet avaliable for public release. |
| 22 | + |
| 23 | +For more information on the CSEM version of ModEM see the README on the CSEM |
| 24 | +branch: https://github.com/magnetotellurics/ModEM/blob/CSEM/README.md |
| 25 | + |
| 26 | +.. _dipole1d: https://marineemlab.ucsd.edu/Projects/Occam/1DCSEM/ |
| 27 | + |
| 28 | + |
| 29 | +Configuring and Compiling with Dipole1D |
| 30 | +---------------------------------------- |
| 31 | + |
| 32 | +The license associated with Dipole1D disallows us from including it in our |
| 33 | +source code; however, the configure script (``/f90/CONFIG/configure``) |
| 34 | +contains code to automatically retrieve it for you. The configure script has |
| 35 | +the following options: |
| 36 | + |
| 37 | +.. code-block:: bash |
| 38 | +
|
| 39 | + $ cd ModEM/f90/ |
| 40 | + $ ./CONFIG/configure |
| 41 | + Usage: ./CONFIG/Configure with the following options: |
| 42 | + Compiler: Choose from supported compilers: [ gfortran | ifort ] |
| 43 | + Makefile: Provide a name for your output Makefile name. |
| 44 | + [Debug or Release]: Choose whether you want to compile the Debug or Release version. |
| 45 | + [MPI or Serial]: Choose whether you want to compile the parallel (MPI) or serial version. |
| 46 | + [MF or SP or SP2]: Choose between the Matrix Free (MF), or the Modified System of Eqs 1 (SP), or the Modified System of Eqs 2 (SP2) of the code. |
| 47 | + [MT or MT+CSEM]: Compile MT or MT+CSEM. In Case of MT+CSEM, choose in the following option whether Dipole1D or EM1D or both will be used to get for the secondary field formulation. |
| 48 | + [Dipole1D or EM1D]: (Optional) - Choose whether you have Dipole1D, or EM1D in the source files folder '/3D_MT/CSEM_module' |
| 49 | +
|
| 50 | +To configure with Dipole1D run: |
| 51 | + |
| 52 | +.. code-block:: bash |
| 53 | +
|
| 54 | + $ cd ModEM/f90 |
| 55 | + $ ./CONFIG/configure ./CONFIG/Configure gfortran Makefile Release MPI MF MT+CSEM Dipole1D |
| 56 | + Dipole1D is not currently in ./3D_MT/CSEM_module/Dipole1D |
| 57 | + Would you like to have this script automatically download it now? [Yes/No] |
| 58 | +
|
| 59 | +You will be presented with the above prompt, type 'Yes' to automatically |
| 60 | +download Dipole1D, then you'll be able to type ``make`` to compile: |
| 61 | + |
| 62 | +.. code-block:: bash |
| 63 | +
|
| 64 | + $ make |
| 65 | +
|
0 commit comments