Running smaller basins
download this file as plain text
In this log file, I'm listing the steps followed to convert the community model to a different
    directory structure, /work/newdir/ rather than /work/wsm/
1. made directory    /work/newdir/
2. downloaded community model to /work/newdir/ directory
3. change /work/wsm to /work/newdir on line 11 of setup.asc
4. type: chmod 777 setup.asc
5. type: setup.asc
6. under scripts, edit all files ending in '.com'
        Change the line
            set tree = "/work/wsm"
                        to
            set tree = "/work/newdir"
        wherever it is found
7. under pp/setup/
If changing working directory, this step is very important.    Otherwise you could end up deleting
    work in the original /work/wsm directory.
    edit    z1_make_scenario_subdir.com
        replace wdm with newdir
    edit    z9_obliterate_scenario.com
        replace wdm with newdir
    edit    ed_global_line.com
        replace wsm with newdir
    edit    ed_global_line.edp so that it reads:
/work\/wsm
s//work\/newdir
w
q
            this will be the ed program that changes the wdm pointer in the UCIs
    type:    ed_global_line.com calib
            you should see the UCIs being updated.
8. change 'include' fortran files
        under /pp/lib/inc/    change the following
        post_parameters.inc - change the outtree and tabletree parameters for the /work/newdir/
            you will have to change the sizes of the variables also.
        wsm_parameters.inc - change the tree and datatree variables as appropriate.
9. under pp/data/base_data/templates/
            edit atdep_pltgen.uci and ps_pltgen.uci
                change references from /work/wsm to /work/newdir
10. recompile the pre-and-post processors
        under the pp directory, type compile_all.com
11. under pp/bin/
            edit pre4_change_wdms.com and pre5_atdep_wdm_modification.com
                change references from /work/wsm to /work/newdir
12. under pp/bin/secondary/
            edit move*.com
                change references from /work/wsm to /work/newdir
13. run preproc0 from pp/bin pre0_make_base_binary.exe
        run preprocessor1 from pp/bin pre1_make_scenario_binary.com calib
        run preprocessor2 from pp/bin pre2_calc_nutrient_management.com calib
14. proceed as usual.