Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Format-and-Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
run: |
brew update
brew install gcc open-mpi
ln -s $(brew --prefix)/bin/gfortran-15 $(brew --prefix)/bin/gfortran
# ln -s $(brew --prefix)/bin/gfortran-15 $(brew --prefix)/bin/gfortran
- name: Clone GITM repository
uses: actions/checkout@v4
- name: Run tests on MacOS (compile, clean, run one test, no output checking)
Expand Down
10 changes: 10 additions & 0 deletions Config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@
my $command = "touch ext/Electrodynamics/src/Makefile.DEPEND";
print "creating DEPEND file in electrodynamics:\n\t $command\n";
my $exit_status = `$command`;

# Write Makefile.local for ext/* libraries so they can find GITM's build
# config: Makefile.dirs for paths, Makefile.conf for compiler rules
my $GitMDir = `pwd`; chomp $GitMDir;
open(my $fh, ">", "ext/Electrodynamics/build/Makefile.local")
or die "Cannot write ext/Electrodynamics/build/Makefile.local: $!";
print $fh "DIRSFILE := $GitMDir/Makefile.def\n";
print $fh "BUILDDIR := $GitMDir\n";
close($fh);
print "Created ext/Electrodynamics/build/Makefile.local\n";
}

&modify_utilities if $NoFlush;
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ VERSION:
GITM:
@cd ${SHAREDIR}; echo "Entering ${SHAREDIR}"; make --no-print-directory LIB
@cd $(ABDIR); echo "Entering ${ABDIR}" ; make --no-print-directory LIB
@cd $(EIEDIR)/src; echo "Entering ${EIEDIR}/src"; make --no-print-directory DIRSFILE=${DIRSFILE} SHARELIB
@cd $(EIEDIR)/src; echo "Entering ${EIEDIR}/src"; make --no-print-directory SHARELIB
@cd ${EUADIR}; echo "Entering ${EUADIR}"; make --no-print-directory LIB
@cd $(IODIR); echo "Entering ${IODIR}"; make --no-print-directory LIB
@cd $(GLDIR); echo "Entering ${GLDIR}"; make --no-print-directory LIB
Expand Down
3 changes: 0 additions & 3 deletions srcMake/Makefile.def
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ localdefault: help # default target

DIR = ${UADIR}

DIRSFILE = ${UADIR}/Makefile.def
BUILDDIR = ${UADIR}

SCRIPTDIR = ${UADIR}/share/Scripts
LIBDIR = ${UADIR}/src
RUNDIR = ${UADIR}/run
Expand Down
Loading