-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/v3.0.4'
- Loading branch information
Showing
91 changed files
with
2,749 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
@echo off | ||
call setenv.bat | ||
|
||
set HR=%time:~0,2% | ||
set HR=%Hr: =0% | ||
set HR=%HR: =% | ||
set logfile=moveslog_archive_%date:~10,4%-%date:~4,2%-%date:~7,2%_%HR%%time:~3,2%.txt | ||
if exist sharedwork\*.* erase /Q /S /F sharedwork\*.* | ||
if exist WorkerFolder\*.* erase /Q /S /F WorkerFolder\*.* | ||
if exist moveslog_old.txt erase moveslog_old.txt | ||
if exist moveslog.txt rename moveslog.txt moveslog_old.txt | ||
call setenv.bat | ||
ant rungui | ||
|
||
if exist moveslog.txt REN "moveslog.txt" "%logfile%" | ||
|
||
if exist %logfile% ( | ||
if not exist moveslog.zip ( | ||
jar cMf moveslog.zip "%logfile%" && del "%logfile%" | ||
) else ( | ||
jar uMf moveslog.zip "%logfile%" && del "%logfile%" | ||
) | ||
) | ||
|
||
ant rungui | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
To compile the nonroad executable, install `gfortran` and navigate to this folder in the command prompt. Then type `make`. | ||
# Compiling NONROAD | ||
|
||
`make` will find the makefile and then `gfortran` is used to compile the code. | ||
The NONROAD model is written in FORTRAN. It is available pre-compiled both on GitHub and when using the Windows installer for MOVES, so most users will not need to compile NONROAD. However, users running in a Linux environment will need to recompile. | ||
|
||
Note that the location of the nonroad executable is configured in MOVES using 4 files: | ||
Previously, EPA recommended using `gfortran` to compile NONROAD. However, we have received reports that in certain instances, NONROAD compiled with `gfortran` on some Linux platforms incorrectly produces near-zero emission results for some equipment types. Therefore, when compiling for Linux, EPA recommends finding a compatible FORTRAN compiler using the resources at [fortran-lang.org](https://fortran-lang.org/compilers/). Note that we have not experienced any issues compiling with `gfortran` on Windows installed with [MSYS2](https://www.msys2.org/) or [Cygwin](https://cygwin.com/). | ||
|
||
Regardless of which compiler is used, NONROAD should be compiled using the `makefile` found in the `NONROAD/NR08a/SOURCE` folder. This can be done by navigating to the `NONROAD/NR08a/SOURCE` folder in a terminal and running the `make` command. Note that the first line of the makefile may need to be edited to specify your chosen compiler if you do not use `gfortran`. | ||
|
||
After compiling NONROAD, delete the `NONROAD/NR08a/NONROAD.exe` file, and move your new executable to this location. After moving, ensure the file name is the same (including capitalization) as `NONROAD.exe`. If a different filename or directory is used, you will need to update the path to executable in the following configuration files: | ||
|
||
1. MOVESConfiguration.txt | ||
2. MOVESWorker.txt | ||
3. maketodo.txt | ||
4. manyworkers.txt | ||
|
||
Depending on how this is set and which operating system is used, the nonroad executable may need to be moved and/or renamed to match the capitalization set in the configuration files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.