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

Commit

Permalink
Merge pull request #901 from slacgismo/develop
Browse files Browse the repository at this point in the history
Release Beauharnois-21
  • Loading branch information
aivanova5 committed May 22, 2021
2 parents a7e1aea + 2b13f8d commit 3af94ab
Show file tree
Hide file tree
Showing 102 changed files with 59,606 additions and 537 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@
*.xls binary
*.xlsx binary
*.mdb binary
*.tif binary
.circleci/config.yml merge=ours
4 changes: 2 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:

runs-on: ubuntu-latest
container: slacgismo/gridlabd_dockerhub_base:201217
container: slacgismo/gridlabd_dockerhub_base:210520

steps:
- uses: actions/checkout@v2
Expand All @@ -26,7 +26,7 @@ jobs:
run: make -j10 system
- name: Validate build
run: |
gridlabd -D keep_progress=TRUE -T 0 --validate || ( utilities/save_validation_errors ; false )
gridlabd -D keep_progress=TRUE -T 0 --validate -D github_actions=yes || ( utilities/save_validation_errors ; false )
- name: Upload artifacts on failure
uses: actions/upload-artifact@v2
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:

runs-on: ubuntu-latest
container: slacgismo/gridlabd_dockerhub_base:201217
container: slacgismo/gridlabd_dockerhub_base:210520

steps:
- uses: actions/checkout@v2
Expand All @@ -26,7 +26,7 @@ jobs:
run: make -j10 system
- name: Validate build
run: |
gridlabd -D keep_progress=TRUE -T 0 --validate || ( utilities/save_validation_errors ; false )
gridlabd -D keep_progress=TRUE -T 0 --validate -D github_actions=yes || ( utilities/save_validation_errors ; false )
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: failure()
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,14 @@ gldcore/link/python/examples/example_3/x.csv
gldcore/link/python/examples/example_1/example.png
gldcore/link/python/examples/example_1/x.csv
gldcore/autotest/test.glm
powerflow/autotest/test_IEEE13_pole_output.csv
gridlabd-core.*
documents/gridlabd.md
documents/gridlabd.pdf
openfido.err
test_*.html
gldcore/converters/autotest/IEEE-123.html
gldcore/converters/autotest/solver_nr_profile.csv
gldcore/converters/autotest/table2glm_input_noclass.glm
gldcore/converters/autotest/table2glm_input_noname.glm
gldcore/converters/autotest/table2glm_input.glm
Empty file added Geodata.md
Empty file.
69 changes: 33 additions & 36 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# HiPAS GridLAB-D 4.2
# Copyright (C) 2020 Regents of the Leland Stanford Junior University
#
# Authors:
# Authors:
# DP Chassin (dchassin@slac.stanford.edu)

ACLOCAL_AMFLAGS = -I m4
Expand Down Expand Up @@ -39,25 +39,21 @@ AM_LDFLAGS += $(GLD_LDFLAGS)
BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST =
dist_pkgdata_DATA =
dist_pkgdata_DATA =
pkgdata_DATA =
noinst_LTLIBRARIES =
pkglib_LTLIBRARIES =
bin_PROGRAMS =
bin_SCRIPTS =
dist_doc_DATA =

python_requirements = $(top_srcdir)/requirements.txt

docs_targets =

# required modules
include third_party/superLU_MT/Makefile_combined.mk
include third_party/jsonCpp/Makefile.mk
include gldcore/link/engine/Makefile.mk
include gldcore/link/matlab/Makefile.mk
include gldcore/link/python/Makefile.mk
include third_party/Makefile.mk
include gldcore/Makefile.mk
include gldcore/rt/Makefile.mk
include gldcore/converters/Makefile.mk
include gldcore/solvers/Makefile.mk
include gldcore/scripts/Makefile.mk
include python_extras/Makefile.mk
include cloud/Makefile.mk

Expand Down Expand Up @@ -165,7 +161,7 @@ clean-wc:

install-validate: install validate

check-local validate:
check-local validate:
@(export LD_LIBRARY_PATH=.:$${LD_LIBRARY_PATH:-${libdir}}; ${bindir}/gridlabd -D keep_progress=TRUE --validate -D keep_progress=TRUE || (utilities/save_validation_output;exit 1))

scratchdir = scratch
Expand All @@ -182,7 +178,7 @@ $(scratchdir)/.xerces.stamp: third_party/$(XERCES_TARNAME).tar.gz
autoreconf -isf && ./configure && make
touch $@

$(scratchdir)/pkg: distdir # $(scratchdir)/.xerces.stamp
$(scratchdir)/pkg: distdir # $(scratchdir)/.xerces.stamp
test ! -e $@ || rm -rf $@
test -d $@/gldcore || mkdir -p $@/gldcore
# cd $(distdir) && ./configure --with-xerces=$(CURDIR)/$(scratchdir)/$(XERCES_TARNAME) && make install DESTDIR=$(CURDIR)/$@/gldcore
Expand Down Expand Up @@ -260,38 +256,38 @@ rpm-prep:
clean-local: python-clean
@rm -rf $(top_srcdir)/documents/html
@rm -rf $(top_srcdir)/validate.txt
@rm -f $(top_srcdir)/gridlabd.spec
@rm -f $(top_srcdir)/gridlabd.spec
@rm -f $(top_srcdir)/gridlabd.bin origin.txt
@rm -rf $(top_srcdir)/build
@(cd $(top_srcdir) ; build-aux/clean_dirs.sh)

distclean-local: python-clean
@(cd $(top_srcdir) ; build-aux/clean_dirs.sh --depends)
@rm -rf $(top_srcdir)/autom4te.cache
@rm -f $(top_srcdir)/aclocal.m4
@rm -f $(top_srcdir)/aclocal.m4
@rm -f $(top_srcdir)/autoscan.log
@rm -f $(top_srcdir)/m4/libtool.m4
@rm -f $(top_srcdir)/ltoptions.m4
@rm -f $(top_srcdir)/ltsugar.m4
@rm -f $(top_srcdir)/ltversion.m4
@rm -f $(top_srcdir)/lt~obsolete.m4
@rm -f $(top_srcdir)/configure
@rm -f $(top_srcdir)/config.log
@rm -f $(top_srcdir)/config.status
@rm -f $(top_srcdir)/gridlabd.spec
@rm -f $(top_srcdir)/libtool
@rm -f $(top_srcdir)/Makefile
@rm -f $(top_srcdir)/configure
@rm -f $(top_srcdir)/config.log
@rm -f $(top_srcdir)/config.status
@rm -f $(top_srcdir)/gridlabd.spec
@rm -f $(top_srcdir)/libtool
@rm -f $(top_srcdir)/Makefile
@rm -f $(top_srcdir)/Makefile.in
@rm -f $(top_srcdir)/build-aux/ar-lib
@rm -f $(top_srcdir)/build-aux/compile
@rm -f $(top_srcdir)/build-aux/config.log
@rm -f $(top_srcdir)/build-aux/config.guess
@rm -f $(top_srcdir)/build-aux/config.sub
@rm -f $(top_srcdir)/build-aux/install-sh
@rm -f $(top_srcdir)/build-aux/ltmain.sh
@rm -f $(top_srcdir)/build-aux/missing
@rm -f $(top_srcdir)/build-aux/ar-lib
@rm -f $(top_srcdir)/build-aux/compile
@rm -f $(top_srcdir)/build-aux/config.log
@rm -f $(top_srcdir)/build-aux/config.guess
@rm -f $(top_srcdir)/build-aux/config.sub
@rm -f $(top_srcdir)/build-aux/install-sh
@rm -f $(top_srcdir)/build-aux/ltmain.sh
@rm -f $(top_srcdir)/build-aux/missing
@rm -f $(top_srcdir)/build-aux/depcomp
@rm -f $(top_srcdir)/gridlabd.spec
@rm -f $(top_srcdir)/gridlabd.spec
@rm -f $(top_srcdir)/gridlabd.bin origin.txt
@rm -rf $(top_srcdir)/build
@rm -rf $(top_srcdir)/documents/html
Expand All @@ -300,7 +296,7 @@ distclean-local: python-clean
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status libtool > /dev/null

install-exec-hook: index python-requirements python-install
install-exec-hook: index python-requirements python-install docs
@cp ${top_srcdir}/{COPYRIGHT,LICENSE} $(prefix)
@echo ""
@echo "Install complete. Here are some useful commands now:"
Expand All @@ -315,14 +311,14 @@ install-exec-hook: index python-requirements python-install
@echo " $(DESTDIR)$(bindir)/gridlabd version set"
@echo ""

python-requirements: requirements.txt
@python3 -m pip install -q -r $<
python-requirements: $(python_requirements)
cat $(python_requirements) | python3 -m pip install -q -r /dev/stdin

reconfigure: distclean
autoreconf -isf && ./configure
autoreconf -isf && ./configure --quiet

reconfigure-debug: distclean
autoreconf -isf && ./configure 'CXXFLAGS=-O0 -g $(CXXFLAGS)'
autoreconf -isf && ./configure --quiet 'CXXFLAGS=-O0 -g $(CXXFLAGS)'

docker: $(PREFIX)/docker.img

Expand Down Expand Up @@ -359,10 +355,11 @@ developer-html: # TODO
@(cd $(top_srcdir)/gldcore/html ; natural_docs . ; cd - > /dev/null )

troubleshooting-html:
@mkdir -p $(top_srcdir)/documents/html/troubleshooting/
@mkdir -p $(top_srcdir)/documents/html/troubleshooting/
@(cd $(top_srcdir) ; gawk -f utilities/troubleshooting.awk */*.cpp > $(top_srcdir)/documents/html/troubleshooting/index.html )

documents/gridlabd.pdf: documents/gridlabd.glm
(cd documents ; gridlabd gridlabd.glm)
pandoc -V geometry:landscape documents/gridlabd.md -o documents/gridlabd.pdf

docs: $(docs_targets)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
![master](https://github.com/dchassin/gridlabd/workflows/master/badge.svg) ![develop](https://github.com/slacgismo/gridlabd/workflows/develop/badge.svg?branch=develop)
![master](https://github.com/slacgismo/gridlabd/actions/workflows/master.yml/badge.svg?branch=master)
![develop](https://github.com/slacgismo/gridlabd/workflows/develop/badge.svg?branch=develop)

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

Expand Down
Loading

0 comments on commit 3af94ab

Please sign in to comment.