8000 New Build System by pmocz · Pull Request #791 · MESAHub/mesa · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

New Build System #791

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

Open
wants to merge 67 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
0aa927d
build: add new build system
VincentVanlaer Jul 29, 2024
c0db59c
build: support current SDK version
VincentVanlaer Jul 29, 2024
9326187
const: port to new build system
VincentVanlaer Jul 29, 2024
2006d5c
utils: port to new build system
VincentVanlaer Jul 29, 2024
cf424a0
math: port to new build system
VincentVanlaer Jul 30, 2024
ff3b047
mtx: port to new build system
VincentVanlaer Jul 30, 2024
e8332c8
auto_diff: port to new build system
VincentVanlaer Jul 30, 2024
ba357c4
num: port to new build system
VincentVanlaer Jul 30, 2024
12ae312
interp_1d: port to new build system
VincentVanlaer Jul 31, 2024
2200425
interp_2d: port to new build system
VincentVanlaer Jul 31, 2024
2ccf7a5
chem: port to new build system
VincentVanlaer Aug 1, 2024
c81fd12
chem: port preprocessor to new build system
VincentVanlaer Aug 1, 2024
003b06c
eos: port to new build system
VincentVanlaer Aug 1, 2024
89887cd
forum: port to new build system
VincentVanlaer Aug 2, 2024
b05f6e4
colors: port to new build system
warrickball Nov 10, 2024
4a007e8
gyre: port to new build system
VincentVanlaer Oct 24, 2024
0970d0d
forum: fix recopying files on build
VincentVanlaer Nov 9, 2024
be3f9fb
kap: port to new build system
VincentVanlaer Nov 9, 2024
cdc85b0
kap: port plotter to new build system
VincentVanlaer Nov 9, 2024
6962abe
kap: move preprocessing oplib script out of archive
VincentVanlaer Nov 9, 2024
c83295a
kap: port preprocessor to new build system
VincentVanlaer Nov 10, 2024
1913dbe
kap: cleanup unused files in preprocessor
VincentVanlaer Nov 10, 2024
4736717
build: add lapack95 pkg-config file
VincentVanlaer Nov 14, 2024
8768d77
gyre: don't combine the different gyre libraries
VincentVanlaer Dec 27, 2024
0357fdf
build: replace realpath with equivalent perl implementation
VincentVanlaer Dec 27, 2024
531ea00
rates: port to new build system
warrickball Dec 28, 2024
ae636d6
neu: port to new build system
warrickball Dec 28, 2024
8d817ab
net: port to new build system
warrickball Dec 28, 2024
3ac3c3a
ionization: port to new build system
warrickball Dec 30, 2024
af763ba
atm: port to new build system
warrickball Dec 30, 2024
9e97830
turb: port to new build system
warrickball Jan 2, 2025
4b48006
adipls: port to new build system
VincentVanlaer Jan 3, 2025
751d922
Remove sample (may revive later)
VincentVanlaer Jan 3, 2025
7579ef2
star_data: port to new build system
VincentVanlaer Jan 3, 2025
121869d
star: port to new build system
VincentVanlaer Jan 3, 2025
bde0495
build: port package template to new build system
VincentVanlaer Jan 3, 2025
7a37571
astero: port to new build system
VincentVanlaer Jan 3, 2025
fa92f59
binary: port to new build system
VincentVanlaer Jan 4, 2025
25db568
build: disable warnings on module generation step
VincentVanlaer Jan 4, 2025
9dadb06
atm: port preprocessor to new build system
VincentVanlaer Jan 4, 2025
2e759f9
eos: port builders to new build system
VincentVanlaer Jan 4, 2025
e290d1b
build: fix gen-compile-tree continue instead of next
VincentVanlaer Jan 4, 2025
74e6698
eos: port plotter to new build system
VincentVanlaer Jan 4, 2025
7aa5596
neu: port plotter to new build system
VincentVanlaer Jan 4, 2025
161f964
work: port to new build system
VincentVanlaer Jan 17, 2025
8d353e6
tests: port star test suite to new build system
VincentVanlaer Jan 22, 2025
11b022b
binary: port test suite to new build system
VincentVanlaer Jan 22, 2025
32c4fb1
astero: port test suite to new build system
VincentVanlaer Jan 22, 2025
541ac03
data: convert zams model generation to new build system
VincentVanlaer Jan 22, 2025
2244e97
star: port dev cases to new build system
VincentVanlaer Jan 22, 2025
15f7336
fix old gyre_lib in dev cases and test suite
VincentVanlaer Jan 22, 2025
978e707
build: make sure the include subdir of a module build dir always exists
VincentVanlaer Jan 22, 2025
ee2f134
stella: port res helper to new build system
VincentVanlaer Jan 23, 2025
2a10534
build: clean up remaining traces of old build system
VincentVanlaer Jan 23, 2025
ea94b0d
build: reenable and fix all tests
VincentVanlaer Jan 23, 2025
aac4ce9
build: do not install modules on a normal build
VincentVanlaer Jan 23, 2025
822e2b2
build: clean up install script
VincentVanlaer Jan 23, 2025
821e04a
build: remove pushd for portability
VincentVanlaer Jan 23, 2025
1fa07ee
shmesa: small changes for new build system
VincentVanlaer Jan 23, 2025
8bb17fb
build: make it possible to disable FPE traps for compatibility with e…
VincentVanlaer Jan 23, 2025
aa57831
docs: update for new build system
VincentVanlaer Jan 23, 2025
f7434da
test for adipls (cleanup needed later)
VincentVanlaer Feb 1, 2025
f303d6d
rsp guards to pass test suite
VincentVanlaer Feb 2, 2025
971fa3c
ionization: port preprocessor to new build
VincentVanlaer Apr 16, 2025
2f51b24
build: disable FPE by default
VincentVanlaer Apr 17, 2025
d248833
kap: fix python formatting
VincentVanlaer Apr 17, 2025
4c01319
build: remove -finit-real=zero
VincentVanlaer Apr 18, 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
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
116 changes: 116 additions & 0 deletions adipls/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
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/ 8000 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.

2 changes: 1 addition & 1 deletion 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
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
Loading
0