Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
2c30c92
build: add new build system
VincentVanlaer Jul 29, 2024
557ec63
build: support current SDK version
VincentVanlaer Jul 29, 2024
6f45b5d
const: port to new build system
VincentVanlaer Jul 29, 2024
29fcdf8
utils: port to new build system
VincentVanlaer Jul 29, 2024
6dfd4ed
math: port to new build system
VincentVanlaer Jul 30, 2024
3336df0
mtx: port to new build system
VincentVanlaer Jul 30, 2024
7a9d871
auto_diff: port to new build system
VincentVanlaer Jul 30, 2024
6835e95
num: port to new build system
VincentVanlaer Jul 30, 2024
cc60fe3
interp_1d: port to new build system
VincentVanlaer Jul 31, 2024
c5ed588
interp_2d: port to new build system
VincentVanlaer Jul 31, 2024
8422435
chem: port to new build system
VincentVanlaer Aug 1, 2024
ce0c0e2
chem: port preprocessor to new build system
VincentVanlaer Aug 1, 2024
65bf179
eos: port to new build system
VincentVanlaer Aug 1, 2024
93d30c1
forum: port to new build system
VincentVanlaer Aug 2, 2024
b293201
colors: port to new build system
warrickball Nov 10, 2024
2bb6c1d
gyre: port to new build system
VincentVanlaer Oct 24, 2024
12c00a5
forum: fix recopying files on build
VincentVanlaer Nov 9, 2024
317c746
kap: port to new build system
VincentVanlaer Nov 9, 2024
9225693
kap: port plotter to new build system
VincentVanlaer Nov 9, 2024
d07ffeb
kap: move preprocessing oplib script out of archive
VincentVanlaer Nov 9, 2024
5e5a039
kap: port preprocessor to new build system
VincentVanlaer Nov 10, 2024
bfc1253
kap: cleanup unused files in preprocessor
VincentVanlaer Nov 10, 2024
6b509d3
build: add lapack95 pkg-config file
VincentVanlaer Nov 14, 2024
1917ed1
gyre: don't combine the different gyre libraries
VincentVanlaer Dec 27, 2024
c036db6
build: replace realpath with equivalent perl implementation
VincentVanlaer Dec 27, 2024
3fe1127
rates: port to new build system
warrickball Dec 28, 2024
1376687
neu: port to new build system
warrickball Dec 28, 2024
e234e60
net: port to new build system
warrickball Dec 28, 2024
b17d0c5
ionization: port to new build system
warrickball Dec 30, 2024
ff73220
atm: port to new build system
warrickball Dec 30, 2024
f8d7f40
turb: port to new build system
warrickball Jan 2, 2025
6224a52
adipls: port to new build system
VincentVanlaer Jan 3, 2025
6dd86e6
Remove sample (may revive later)
VincentVanlaer Jan 3, 2025
4bb9ea3
star_data: port to new build system
VincentVanlaer Jan 3, 2025
de85053
star: port to new build system
VincentVanlaer Jan 3, 2025
6c5de1c
build: port package template to new build system
VincentVanlaer Jan 3, 2025
031230a
astero: port to new build system
VincentVanlaer Jan 3, 2025
470520d
binary: port to new build system
VincentVanlaer Jan 4, 2025
90441ee
build: disable warnings on module generation step
VincentVanlaer Jan 4, 2025
f638eec
atm: port preprocessor to new build system
VincentVanlaer Jan 4, 2025
e4dd2fb
eos: port builders to new build system
VincentVanlaer Jan 4, 2025
24d5178
build: fix gen-compile-tree continue instead of next
VincentVanlaer Jan 4, 2025
7689d4a
eos: port plotter to new build system
VincentVanlaer Jan 4, 2025
94ce021
neu: port plotter to new build system
VincentVanlaer Jan 4, 2025
8da96f9
work: port to new build system
VincentVanlaer Jan 17, 2025
e17fe6b
tests: port star test suite to new build system
VincentVanlaer Jan 22, 2025
14848ef
binary: port test suite to new build system
VincentVanlaer Jan 22, 2025
8d97ac4
astero: port test suite to new build system
VincentVanlaer Jan 22, 2025
63b1f1a
data: convert zams model generation to new build system
VincentVanlaer Jan 22, 2025
89aaab4
star: port dev cases to new build system
VincentVanlaer Jan 22, 2025
68295e2
fix old gyre_lib in dev cases and test suite
VincentVanlaer Jan 22, 2025
4c086f7
build: make sure the include subdir of a module build dir always exists
VincentVanlaer Jan 22, 2025
e8ff893
stella: port res helper to new build system
VincentVanlaer Jan 23, 2025
16c244b
build: clean up remaining traces of old build system
VincentVanlaer Jan 23, 2025
378e623
build: reenable and fix all tests
VincentVanlaer Jan 23, 2025
b4dc1cc
build: do not install modules on a normal build
VincentVanlaer Jan 23, 2025
09e7d81
build: clean up install script
VincentVanlaer Jan 23, 2025
c285f24
build: remove pushd for portability
VincentVanlaer Jan 23, 2025
3fc978b
shmesa: small changes for new build system
VincentVanlaer Jan 23, 2025
32e4df1
build: make it possible to disable FPE traps for compatibility with e…
VincentVanlaer Jan 23, 2025
1f3dd78
docs: update for new build system
VincentVanlaer Jan 23, 2025
5be35ea
test for adipls (cleanup needed later)
VincentVanlaer Feb 1, 2025
fd31330
rsp guards to pass test suite
VincentVanlaer Feb 2, 2025
7de3926
ionization: port preprocessor to new build
VincentVanlaer Apr 16, 2025
3297b2e
build: disable FPE by default
VincentVanlaer Apr 17, 2025
4766c17
kap: fix python formatting
VincentVanlaer Apr 17, 2025
5c9b624
build: remove -finit-real=zero
VincentVanlaer Apr 18, 2025
fb38aa8
rsp: fix uninitialized variable read
VincentVanlaer May 13, 2025
a384f41
adipls: fix UB in x coordinate array
VincentVanlaer May 13, 2025
bd000be
astero: use pointers instead of linker ordering for adipls callbacks
VincentVanlaer May 13, 2025
279fa71
net: stop initialization early when there are no reactions
VincentVanlaer May 15, 2025
d65fe7a
adipls: disable optimizations
VincentVanlaer May 16, 2025
ac4954d
utils: remove left over ck script
VincentVanlaer May 16, 2025
6fc3c74
docs: fix sphinx-lint errors
VincentVanlaer May 16, 2025
8012d61
build: remove spurious -o option passed to ar
VincentVanlaer May 25, 2025
54ca996
build: do not use SHELLSTATUS
VincentVanlaer Jun 5, 2025
f921ae9
build: use /. for creating directories
VincentVanlaer Jun 5, 2025
e208e2e
build: don't use make $(file)
VincentVanlaer Jun 6, 2025
86d2b75
build: don't use -Oline on MacOS
VincentVanlaer Jun 6, 2025
39db41e
build: fix pgplot library path
VincentVanlaer Jun 7, 2025
516f67e
build: set and export MESASDK_MATH_SLOT
VincentVanlaer Jun 7, 2025
553cf8b
build: make dependencies more strict
VincentVanlaer Jun 10, 2025
750d26c
build: replace realpath calls with perl
VincentVanlaer Jun 10, 2025
a2e578d
build: remove duplicate include dirs in gen-compile-tree
VincentVanlaer Jun 10, 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 @@ -115,7 +115,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
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
121 changes: 121 additions & 0 deletions adipls/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
include ../make/defaults-module.mk

FFLAGS += -fno-check=bounds

# 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/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 \
src/callbacks.f90

SRCS_CHECK :=
INTERNAL_DEPENDS_ON := const
EXTERNAL_DEPENDS_ON :=
BINTYPE = static-lib
INCLUDE_DIRS := -Iadipack.c/adipls
MODULES := adipls_callbacks.mod
# adipls has too much UB, plaster over it by disabling optimizations. If you
# ever remove this line, make sure that all arrays in common blocks have proper
# bounds everywhere.
PROFILE := debug

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.

4 changes: 2 additions & 2 deletions adipls/adipack.c/adipls/adipls.c.d.f
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ subroutine adipls(i_paramset, ierr_param, i_inout,
c in case of error.
c i_inout: If i_inout = 1 read model from file, as usual.
c If i_inout = 0, model quantities must be provided in
c x_arg(1:nn_arg), aa(arg(1:ivarmd,1:nn_arg), data_arg(1:8)
c x_arg(1:nn_arg), aa_arg(1:ivarmd,1:nn_arg), data_arg(1:8)
c If i_inout = -1, assume that model is already stored,
c regardless of possible model parameters read in.
c
Expand Down Expand Up @@ -55,7 +55,7 @@ subroutine adipls(i_paramset, ierr_param, i_inout,
* nnq1,nnq2,idgnrk
common/sysord/ ii
common/ccgrav/ cgrav
common/xarra/ x(1)
common/xarra/ x(nnmax)
common/wrklir/ wwwww(300)
common/worksp/ aa1(iaa1,1)
common/yyyyyy/ y(iy,1)
Expand Down
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
Loading