...
- Separate the common files and scenario files, by putting the common files into one folder and the scenario-specific files into their own individual folders.
- Use adcprep to partition the input files in the shared folder. It may ask for certain input files that are not shared, just use a dummy file in that case.
- Symbolically link the global files (executables, fort.14, etc ...) into each scenario folder.
- cd to the shared folder and use this fancy bash one-liner to link the PE folders into your scenario folder. This line uses the find utility's powerful exec feature to
- Exclude files (in this case fort.15) that will be written to from being linked. Modify this as needed. If hotstarting exclude the hotstart files.
- Find localized files and their corresponding PE folder
- Make an empty copy of the corresponding PE folder and link the localized file.
...