Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Master beauharnois-13 #786

Merged
merged 15 commits into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
50 changes: 29 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
![master](https://github.com/dchassin/gridlabd/workflows/master/badge.svg) ![develop](https://github.com/slacgismo/gridlabd/workflows/develop/badge.svg?branch=develop)

The main documentation page for this project is located at http://docs.gridlabd.us/.
The documentation for this project is located at http://docs.gridlabd.us/.

## Important Note
This respository contains the source code to HiPAS GridLAB-D, which is being developed by SLAC National Accelerator Laboratory for the California Energy Commission under grant [EPC-17-046](https://www.energy.ca.gov/filebrowser/download/1147). This version of GridLAB-D is intended to be a commercial-grade version of the [US Department of Energy's research version of GridLAB-D developed by Pacific Northwest National Laboratory](https://github.com/gridlab-d/gridlab-d).

This repository is SLAC National Accelerator's version of HiPAS GridLAB-D. Only SLAC projects may contribute to this repository. Changes made in this repository will be migrated back to the [original GridLAB-D repository](https://github.com/gridlab-d/gridlab-d) at PNNL's discretion.
The source code in this repository is being developed in coordination with several other CEC and DOE projects conducted by or coordinated with SLAC and Stanford University. Only participating SLAC and Stanford projects may contribute to this repository. Changes made in this repository will be migrated back to the research version of GridLAB-D at PNNL's discretion.

The following projects are actively contributing to HiPAS GridLAB-D at this time:

* GLOW (CEC funding, Hitachi America Laboratories lead)
* OpenFIDO (CEC funding, SLAC National Accelerator Laboratory lead)
* PowerNET (DOE funding, Stanford University lead)
* PowerNET with Market (CEC funding, SLAC National Accelerator Laboratory lead)
* VADER (DOE funding, SLAC National Accelerator Laboratory lead)
* GRIP (DOE funding, SLAC National Accelerator Laboratory lead)
* TESS (DOE funding, SLAC National Accelerator Laboratory lead)
* Advanced Load Modeling (DOE funding, SLAC National Accelerator Laboratory lead)
* LoadInsight (DOE funding, SLAC National Accelerator Laboratory lead)

# User quick start

The preferred method of using SLAC releases of GridLAB-D is to download the SLAC master image from docker hub (see https://cloud.docker.com/u/gridlabd/repository/docker/gridlabd/slac-master). You must install the docker daemon to use docker images. See https://www.docker.com/get-started for details.
The preferred method for running HiPAS GridLAB-D is to download the SLAC master image from docker hub (see https://cloud.docker.com/u/gridlabd/repository/docker/gridlabd/slac-master). You must install the docker daemon to use docker images. See https://www.docker.com/get-started for details.

Once you have installed docker, you may issue the following commands to run GridLAB-D at the command line:
~~~
Expand All @@ -24,31 +36,27 @@ Note that this alias will interfere with the host-based installation.

*Note*: This fork of [GridLAB-D](https://github.com/gridlab-d/gridlab-d) does not support MS Windows directly. You must use docker or a virtual machine running linux.

Normally on Linux and Mac OS X developers you should use the `install.sh` script to setup the system, perform the initial build, and install GridLAB-D for all users on the system.
Normally on Linux and Mac OS X developers should use the `install.sh` script to setup the system, perform the initial build, and install GridLAB-D for all users on the system.
~~~
host% git clone https://github.com/slacgismo/gridlabd gridlabd
host% gridlabd/install.sh
~~~

The `gridlabd` command is added to the `/usr/local/bin` folder, so this folder must be included in the path for all users, e.g., as specified in `/etc/profile` or `/etc/profile.d`.
To rebuild the source code and install again, use the `make system` command. You can use parallel builds using the `make -j<nproc> system` command.

You may work with a user installation instead of a system installation. Assuming your development system is ready (see https://github.com/slacgismo/gridlabd/wiki/Install#mac-osx-and-linux for details), you can "quickly" download and build a host-based installation from a branch using the following commands:
If you have modified the branch name or version information, you must reconfigure your build using the `make reconfigure` command before using `make system`.

~~~
host% git clone https://github.com/slacgismo/gridlabd -b _branch-name_ _work-folder_
host% cd _work-folder_
host% autoreconf -isf
host% ./configure --enable-silent-rules --prefix=$PWD/install [_options_]
host% make -j install
host% export PATH=$PWD/install/bin:$PATH
host% gridlabd --version
host% gridlabd --validate
~~~
Each build of HiPAS GridLAB-D will be installed in `/usr/local/opt/gridlabd`. Links to the active version are added to the `/usr/local/bin` folder, so this folder must be included in the path for all users, e.g., as specified in `/etc/profile` or `/etc/profile.d`. Additional links are created in `/usr/local/lib` and `/usr/local/share`, as needed.

You may use the `gridlabd version` command to manage which version is active on the system. See the [`gridlabd version`](http://docs.gridlabd.us/index.html?owner=slacgismo&project=gridlabd&branch=master&folder=/Subcommand&doc=/Subcommand/Version.md) command for details.

You use `make install` to build only. To use an inactive build run the `gridlabd` command of that build instead of running the active version. For example, if you only built `4.2.13-201019-develop` then you can run `/usr/local/opt/gridlabd/4.2.13-201019-develop/bin/gridlabd` to run it instead of running `/usr/local/bin/gridlabd`.

Before using a build of gridlabd, you should always validate it using `gridlabd --validate` in the root folder of the source tree. Be careful to verify that the branch of the source tree matches the branch of the version you are running. This is not checked automatically.

## Building and Debugging

## Useful configure options
- `--with-mysql=/usr/local` to enable support for mysql (assuming you install mysql-dev on your system)
- `CXXFLAGS='-w -O0 -g'` to enable debugging of C++ source code (e.g., module code)
- `CFLAGS='-w -O0 -g'` to enable debugging of C source code (e.g., core code)
You can configure a debugging version using `make reconfigure-debug`. When debugging is enabled you can use the [`gridlabd trace`](http://docs.gridlabd.us/index.html?owner=slacgismo&project=gridlabd&branch=master&folder=/Subcommand&doc=/Subcommand/Trace.md) command and the [`gridlabd gdb`](http://docs.gridlabd.us/index.html?owner=slacgismo&project=gridlabd&branch=master&folder=/Subcommand&doc=/Subcommand/Gdb.md) (for linux) or [`gridlabd lldb`](http://docs.gridlabd.us/index.html?owner=slacgismo&project=gridlabd&branch=master&folder=/Subcommand&doc=/Subcommand/Lldb.md) (for Mac OSX) commands to debug a simulation.

## Notes
- The version number should contain the _branch-name_. If not, use the `which gridlabd` command to check that the path is correct.
Expand Down
23 changes: 0 additions & 23 deletions assert/Makefile.mk

This file was deleted.

23 changes: 0 additions & 23 deletions climate/Makefile.mk

This file was deleted.

19 changes: 0 additions & 19 deletions commercial/Makefile.mk

This file was deleted.

1 change: 0 additions & 1 deletion commercial/autotest/.gitignore

This file was deleted.

177 changes: 0 additions & 177 deletions connection/json_link/doc/Makefile

This file was deleted.

4 changes: 0 additions & 4 deletions connection/json_link/doc/html/.buildinfo

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/mast_raw_start_alive0.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/mast_raw_start_bad_dlen.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/mast_raw_start_bad_hlen.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/mast_raw_start_bad_jver.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/mast_raw_start_bad_rcode.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/mast_raw_start_bad_type.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/mast_raw_start_bad_ver.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/mast_raw_start_ok.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/slv_raw_start_alive0.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/slv_raw_start_bad_dlen.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/slv_raw_start_bad_hlen.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/slv_raw_start_bad_jver.json

This file was deleted.

1 change: 0 additions & 1 deletion connection/json_link/faults/slv_raw_start_bad_rcode.json

This file was deleted.

Loading