-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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 LoopTools #28292
Open
matthewfeickert
wants to merge
1
commit into
conda-forge:main
Choose a base branch
from
matthewfeickert:feat/add-LoopTools
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+112
−0
Open
Add LoopTools #28292
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include <stdio.h> | ||
#include "clooptools.h" | ||
|
||
#define MH2 (126.*126.) | ||
#define MZ2 (91.188*91.188) | ||
#define MW2 (80.4*80.4) | ||
#define Alfa (1./137.0359895) | ||
#define pi 3.14159265358979 | ||
|
||
#define SW2 (1. - MW2/MZ2) | ||
|
||
static ComplexType SigmaH(double k2) { | ||
return Alfa/(32*pi*SW2*MW2)* | ||
( 3*MH2*A0(MH2) + 9*MH2*MH2*B0(k2, MH2, MH2) | ||
+ 2*(MH2*MH2 - 4*MW2*(k2 - 3*MW2))*B0(k2, MW2, MW2) | ||
+ 2*(6*MW2 + MH2)*A0(MW2) - 24*MW2*MW2 | ||
+ (MH2*MH2 - 4*MZ2*(k2 - 3*MZ2))*B0(k2, MZ2, MZ2) | ||
+ (6*MZ2 + MH2)*A0(MZ2) - 12*MZ2*MZ2 ); | ||
} | ||
|
||
int main() { | ||
RealType s; | ||
ltini(); | ||
for( s = 100; s <= 1000; s += 50 ) { | ||
ComplexType sig = SigmaH(s); | ||
printf("%g\t%g%+gi\n", s, Re(sig), Im(sig)); | ||
} | ||
ltexi(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{% set name = "looptools" %} | ||
{% set version = "2.16" %} | ||
|
||
package: | ||
name: {{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://feynarts.de/looptools/LoopTools-{{ version }}.tar.gz | ||
sha256: 4113467575db3a14405d62d9e516b3b90410b73ea8d20c8eb8d70a30fc5cc9cb | ||
|
||
build: | ||
number: 0 | ||
|
||
outputs: | ||
- name: {{ name }}-static | ||
|
||
build: | ||
skip: true # [win] | ||
run_exports: | ||
- {{ pin_subpackage('looptools-static', max_pin='x.x') }} | ||
ignore_run_exports_from: | ||
- {{ compiler('cxx') }} | ||
script: | ||
# FIXME: Avoid error from trying to create directories that exist | ||
- sed -i 's/mkdir /mkdir -p /g' makefile.in | ||
- ./configure --help | ||
# FIXME: Author has disabled builds with dynamic linking | ||
# c.f. https://github.com/hep-packaging-coordination/packaging-hep-simulation-stack/issues/4#issuecomment-2489198926 | ||
# - ./configure --prefix=$PREFIX --dynamic | ||
- ./configure --prefix=$PREFIX | ||
- make | ||
- make install | ||
# conda just uses $PREFIX/lib | ||
- mv $PREFIX/lib64/libooptools.a $PREFIX/lib/libooptools.a # [linux] | ||
- rm -rf build | ||
|
||
requirements: | ||
build: | ||
- {{ stdlib('c') }} | ||
- {{ compiler('cxx') }} | ||
- {{ compiler('fortran') }} | ||
- make | ||
- sed | ||
- gawk | ||
|
||
test: | ||
files: | ||
- examples/ | ||
requires: | ||
- {{ compiler('cxx') }} | ||
- gfortran | ||
commands: | ||
- test ! -f $PREFIX/lib64/libooptools.a # [linux] | ||
- test -f $PREFIX/lib/libooptools.a | ||
- test -f $PREFIX/include/looptools.h | ||
- test -f $PREFIX/include/clooptools.h | ||
- test -f $PREFIX/bin/lt | ||
- test -f $PREFIX/bin/fcc | ||
- test -f $PREFIX/bin/f++ | ||
|
||
- fcc --help | ||
- f++ --help | ||
|
||
- cd examples | ||
- $CXX example01.cpp -o example01 $CXXFLAGS $LDFLAGS -looptools -lgfortran | ||
- ./example01 | ||
|
||
about: | ||
home: https://feynarts.de/looptools/ | ||
summary: 'LoopTools: A package for evaluation of scalar and tensor one-loop integrals' | ||
description: | | ||
LoopTools is a package for evaluation of scalar and tensor one-loop integrals | ||
based on the FF package by G.J. van Oldenborgh. It features an easy Fortran, | ||
C++, and Mathematica interface to the scalar one-loop functions of FF and | ||
in addition provides the 2-, 3-, and 4-point tensor coefficient functions. | ||
license: GPL-3.0-only | ||
license_family: GPL | ||
license_file: COPYING | ||
|
||
extra: | ||
recipe-maintainers: | ||
- matthewfeickert |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is static, it should need a run_exports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xhochy Hm, I thought from https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#export-runtime-requirements that I was setting
run_exports
here. Is there more clear documentation on how this works?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following
krb5
which is given as the example package in CFEP-18:https://github.com/conda-forge/krb5-feedstock/blob/ee87321c98e795ffa99a9fc1abf1570272153e90/recipe/meta.yaml#L13-L15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, or should the
run_exports
be at the top level instead?