Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new build system #724

Open
wants to merge 69 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
81d47cd
build: add new build system
VincentVanlaer Jul 29, 2024
3f31cc7
build: support current SDK version
VincentVanlaer Jul 29, 2024
545e685
const: port to new build system
VincentVanlaer Jul 29, 2024
9b7ea0d
utils: port to new build system
VincentVanlaer Jul 29, 2024
6b775ac
math: port to new build system
VincentVanlaer Jul 30, 2024
048df5f
mtx: port to new build system
VincentVanlaer Jul 30, 2024
5f20114
auto_diff: port to new build system
VincentVanlaer Jul 30, 2024
59a8d37
num: port to new build system
VincentVanlaer Jul 30, 2024
b4e0a64
interp_1d: port to new build system
VincentVanlaer Jul 31, 2024
a23ba78
interp_2d: port to new build system
VincentVanlaer Jul 31, 2024
7898b11
chem: port to new build system
VincentVanlaer Aug 1, 2024
e172320
chem: port preprocessor to new build system
VincentVanlaer Aug 1, 2024
f2d69e7
eos: port to new build system
VincentVanlaer Aug 1, 2024
a668579
forum: port to new build system
VincentVanlaer Aug 2, 2024
dc046cd
colors: port to new build system
warrickball Nov 10, 2024
426c76a
gyre: port to new build system
VincentVanlaer Oct 24, 2024
a2c98a7
forum: fix recopying files on build
VincentVanlaer Nov 9, 2024
e151878
kap: port to new build system
VincentVanlaer Nov 9, 2024
c4943c7
kap: port plotter to new build system
VincentVanlaer Nov 9, 2024
87f56b7
kap: move preprocessing oplib script out of archive
VincentVanlaer Nov 9, 2024
77dc3df
kap: port preprocessor to new build system
VincentVanlaer Nov 10, 2024
df1a8c9
kap: cleanup unused files in preprocessor
VincentVanlaer Nov 10, 2024
e6f450f
build: add lapack95 pkg-config file
VincentVanlaer Nov 14, 2024
6229cfb
gyre: don't combine the different gyre libraries
VincentVanlaer Dec 27, 2024
7b6233c
build: replace realpath with equivalent perl implementation
VincentVanlaer Dec 27, 2024
40d87f0
rates: port to new build system
warrickball Dec 28, 2024
fd477f0
neu: port to new build system
warrickball Dec 28, 2024
3a5df2d
net: port to new build system
warrickball Dec 28, 2024
7a5f57b
ionization: port to new build system
warrickball Dec 30, 2024
117a253
atm: port to new build system
warrickball Dec 30, 2024
0a81da2
turb: port to new build system
warrickball Jan 2, 2025
2a2e0cb
adipls: port to new build system
VincentVanlaer Jan 3, 2025
9c8a509
Remove sample (may revive later)
VincentVanlaer Jan 3, 2025
2babd97
star_data: port to new build system
VincentVanlaer Jan 3, 2025
36ed607
star: port to new build system
VincentVanlaer Jan 3, 2025
ccd266e
build: port package template to new build system
VincentVanlaer Jan 3, 2025
3d0f876
astero: port to new build system
VincentVanlaer Jan 3, 2025
9015e2d
binary: add missing initializations to test
VincentVanlaer Jan 4, 2025
a48818f
binary: port to new build system
VincentVanlaer Jan 4, 2025
cafc4e4
build: disable warnings on module generation step
VincentVanlaer Jan 4, 2025
a5ec9d9
atm: port preprocessor to new build system
VincentVanlaer Jan 4, 2025
f8e5f0d
eos: port builders to new build system
VincentVanlaer Jan 4, 2025
7264994
build: fix gen-compile-tree continue instead of next
VincentVanlaer Jan 4, 2025
0660a0f
eos: port plotter to new build system
VincentVanlaer Jan 4, 2025
fa0add2
neu: port plotter to new build system
VincentVanlaer Jan 4, 2025
264ffb9
work: port to new build system
VincentVanlaer Jan 17, 2025
531b1da
tests: port star test suite to new build system
VincentVanlaer Jan 22, 2025
ae2f8ad
pgstar: use pgscrn instead of manually reading the rgb.txt file
VincentVanlaer Jan 22, 2025
46aabd7
binary: port test suite to new build system
VincentVanlaer Jan 22, 2025
280749a
astero: port test suite to new build system
VincentVanlaer Jan 22, 2025
3ae335e
data: convert zams model generation to new build system
VincentVanlaer Jan 22, 2025
b856771
star: port dev cases to new build system
VincentVanlaer Jan 22, 2025
ef21993
fix old gyre_lib in dev cases and test suite
VincentVanlaer Jan 22, 2025
7cc50a8
build: make sure the include subdir of a module build dir always exists
VincentVanlaer Jan 22, 2025
833dd9d
stella: port res helper to new build system
VincentVanlaer Jan 23, 2025
f2dd2fc
build: clean up remaining traces of old build system
VincentVanlaer Jan 23, 2025
8cac0e6
build: reenable and fix all tests
VincentVanlaer Jan 23, 2025
b409299
build: do not install modules on a normal build
VincentVanlaer Jan 23, 2025
2be2e15
build: clean up install script
VincentVanlaer Jan 23, 2025
18a469f
build: remove pushd for portability
VincentVanlaer Jan 23, 2025
28b80bb
build: switch to bash where non-sh features are used
VincentVanlaer Jan 23, 2025
af05250
fixup! star: port dev cases to new build system
VincentVanlaer Jan 23, 2025
45aa18b
fixup! build: clean up install script
VincentVanlaer Jan 23, 2025
36bdc61
shmesa: small changes for new build system
VincentVanlaer Jan 23, 2025
f170331
fixup! binary: port test suite to new build system
VincentVanlaer Jan 23, 2025
d22a8b4
fixup! astero: port test suite to new build system
VincentVanlaer Jan 23, 2025
5225be5
fixup! build: reenable and fix all tests
VincentVanlaer Jan 23, 2025
cd773f9
build: make it possible to disable FPE traps for compatibility with e…
VincentVanlaer Jan 23, 2025
8baecdd
docs: update for new build system
VincentVanlaer Jan 23, 2025
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
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .github/actions/install-mesa/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,4 @@ runs:
sed -i 's/use_cache_for_eos = .true./use_cache_for_eos = .false./g' $MESA_DIR/eos/public/eos_def.f90
sed -i 's/use_cache = .true./use_cache = .false./g' $MESA_DIR/star/private/star_private_def.f90
./install
if [ ! -f lib/libbinary.a ]; then
exit 1
fi
shell: bash
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
data/version_number

## Compilation
build/
build.log
.depend
.order
Expand Down
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.DELETE_ON_ERROR:
.DEFAULT_GOAL := all
.SHELLFLAGS := -eu -c

BUILD_SUBDIR := @$(MAKE) -C
CHECK_SUBDIR := @$(MAKE) check -C
MAKE_DIR := make

BUILD_DIR ?= build

include $(MAKE_DIR)/helpers.mk
include $(MAKE_DIR)/subdirs.mk
include $(MAKE_DIR)/setup-builddir.mk
include $(MAKE_DIR)/version.mk
include $(MAKE_DIR)/subdir-deps.mk

clean:
@rm -rf $(BUILD_DIR_)

all: $(SUBDIRS) $(addsuffix -extract-data,$(SUBDIRS)) $(addsuffix -check,$(SUBDIRS))

.PHONY: all $(SUBDIRS) $(addsuffix -extract-data,$(SUBDIRS)) $(addsuffix -check,$(SUBDIRS)) $(addsuffix -install,$(SUBDIRS)) clean install
114 changes: 114 additions & 0 deletions adipls/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
include ../make/defaults-module.mk

# Build

MODULE_NAME := adipls
SRCS := adipack.c/adipls/adipls.c.d.f \
adipack.c/adipls/adirhs.c.d.f \
adipack.c/adipls/anldet.d.f \
adipack.c/adipls/cmparr.d.f \
adipack.c/adipls/danorm.d.f \
adipack.c/adipls/decicd.d.f \
adipack.c/adipls/delta1.d.f \
adipack.c/adipls/delta2.d.f \
adipack.c/adipls/delta3.d.f \
adipack.c/adipls/dmpgsm.d.f \
adipack.c/adipls/dmpmde.d.f \
adipack.c/adipls/dmpsum.d.f \
adipack.c/adipls/dump_obs.c.d.f \
adipack.c/adipls/geninh.d.f \
adipack.c/adipls/gm1ker.n.d.f \
adipack.c/adipls/gravpo.n.d.f \
adipack.c/adipls/kiner.n.d.f \
adipack.c/adipls/mchcff.d.f \
adipack.c/adipls/mchsol.n.d.f \
adipack.c/adipls/nrkint.c.d.f \
adipack.c/adipls/nrkm.d.f \
adipack.c/adipls/nrtssl.d.f \
adipack.c/adipls/order.d.f \
adipack.c/adipls/rdfrqr.d.f \
adipack.c/adipls/readml.n.d.f \
adipack.c/adipls/readsm.d.f \
adipack.c/adipls/res_adimod.c.d.f \
adipack.c/adipls/res_adipar.c.d.f \
adipack.c/adipls/rotker.c.d.f \
adipack.c/adipls/rsnfit.n.d.f \
adipack.c/adipls/sclasl.c.d.f \
adipack.c/adipls/setbcs.n.d.f \
adipack.c/adipls/setobs_st.c.d.f \
adipack.c/adipls/set_rotation.c.d.f \
adipack.c/adipls/setssm.n.d.f \
adipack.c/adipls/setsum.d.f \
adipack.c/adipls/setups_adi.c.d.f \
adipack.c/adipls/shtint.c.d.f \
adipack.c/adipls/sigint.n.d.f \
adipack.c/adipls/sigitc.c.d.f \
adipack.c/adipls/sigitr.n.d.f \
adipack.c/adipls/signew.n.d.f \
adipack.c/adipls/sigout.c.d.f \
adipack.c/adipls/sigscn.c.d.f \
adipack.c/adipls/sigsol.c.d.f \
adipack.c/adipls/sph.d.f \
adipack.c/adipls/stevft.n.d.f \
adipack.c/adipls/sumout.d.f \
adipack.c/adipls/takata.d.f \
adipack.c/adipls/trnmod.n.d.f \
adipack.c/adipls/uhx.d.f \
adipack.c/adipls/user_adi.c.d.f \
adipack.c/adipls/varfrq.n.d.f \
adipack.c/adipls/xlmult.d.f \
adipack.c/gensr/aramax.d.f \
adipack.c/gensr/blstio.f \
adipack.c/gensr/cpycom.f \
adipack.c/gensr/craysub.d.f \
adipack.c/gensr/derive.d.f \
adipack.c/gensr/derivk.new.d.f \
adipack.c/gensr/eiginh.d.f \
adipack.c/gensr/getcas.f \
adipack.c/gensr/intgpt.d.f \
adipack.c/gensr/iprsgn.d.f \
adipack.c/gensr/izero.f \
adipack.c/gensr/length.f \
adipack.c/gensr/leq.d.f \
adipack.c/gensr/lininh4.d.f \
adipack.c/gensr/lininh.new.d.f \
adipack.c/gensr/lir.d.f \
adipack.c/gensr/lirt.d.f \
adipack.c/gensr/lsqpol.d.f \
adipack.c/gensr/lstsqr.f \
adipack.c/gensr/notwin.d.f \
adipack.c/gensr/notwni.f \
adipack.c/gensr/nrk.d.f \
adipack.c/gensr/ofiles.c.f \
adipack.c/gensr/ofiles.f \
adipack.c/gensr/rdilst.f \
adipack.c/gensr/rnmean.d.f \
adipack.c/gensr/skpcom.f \
adipack.c/gensr/sort.d.f \
adipack.c/gensr/spline.d.f \
adipack.c/gensr/squint.d.f \
adipack.c/gensr/store.d.f \
adipack.c/gensr/strcompr.f \
adipack.c/gensr/vinta.d.f \
adipack.c/gensr/vintk.new.d.f \
adipack.c/gensr/zero.d.f \
adipack.c/adiajobs/sr/inrnge.f \
adipack.c/adiajobs/sr/intmdl.d.f \
adipack.c/adiajobs/sr/rdamdl.n.d.f \
adipack.c/adiajobs/sr/rdfreq.d.f \
adipack.c/adiajobs/sr/rdfrqe.d.f \
adipack.c/adiajobs/sr/rdfrqm.d.f \
adipack.c/adiajobs/sr/rseta4.c.d.f \
adipack.c/adiajobs/sr/setssm.d.f \
adipack.c/adiajobs/sr/srdist.c.d.f \
adipack.c/adiajobs/sr/wrfreq.d.f \

SRCS_CHECK :=
INTERNAL_DEPENDS_ON := const
EXTERNAL_DEPENDS_ON :=
BINTYPE = static-lib
INCLUDE_DIRS := -Iadipack.c/adipls

CHECK_RESULTS_GOLDEN :=

include $(MAKE_DIR)/Makefile
187 changes: 0 additions & 187 deletions adipls/adipack.c/adiajobs/makefile

This file was deleted.

15 changes: 0 additions & 15 deletions adipls/adipack.c/adiajobs/sr/makefile

This file was deleted.

5 changes: 3 additions & 2 deletions adipls/adipack.c/adipls/delta1.d.f
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

subroutine delta1(x,y,del1,del1as,aa,omgrtp,sig,iy,ia,nn,el)

IMPLICIT REAL*8 (a-h,o-z)
INTEGER*4 v
use const_def, only: dp
IMPLICIT real(dp) (a-h,o-z)
INTEGER(4) v
include 'adipls.c.d.incl'
parameter(iwork=10*nnmax)
REAL mass, rad, gconst, oms2, oms
Expand Down
6 changes: 3 additions & 3 deletions adipls/adipack.c/adipls/delta2.d.f
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

subroutine delta2(x,y,del2,del2as,xis,aa,omgrtp,sig,iy,ia,nn,el)

implicit real*8 (a-h,o-z)
integer*4 v
use const_def
implicit real(dp) (a-h,o-z)
integer(4) v
include 'adipls.c.d.incl'
parameter(iwork=10*nnmax)
real mass, rad, gconst, oms2, f4, f4int, oms
Expand All @@ -32,7 +33,6 @@ subroutine delta2(x,y,del2,del2as,xis,aa,omgrtp,sig,iy,ia,nn,el)
common/cstdio/ istdin, istdou, istdpr, istder


pi = 4.d0*atan(1.d0)
ell = el*(el+1.)
freq = sqrt(cs(20))
mass = cs(2)/1000
Expand Down
Loading
Loading