Skip to content

Feature/mac os adaptation#179

Open
f-brinkmann wants to merge 5 commits into
developfrom
feature/mac_os_adaptation
Open

Feature/mac os adaptation#179
f-brinkmann wants to merge 5 commits into
developfrom
feature/mac_os_adaptation

Conversation

@f-brinkmann

@f-brinkmann f-brinkmann commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

See files changed for explanations of the changes.

When running make I stil get one error:

NC_MLFMM.cpp:1492:19: error: variable-sized object may not be initialized
 1492 |   int nentryinrow[numRowsOfCoefficientMatrix_] = {0};

LAPACKFLAG=-DUSE_LAPACK
OPTIM=-O2
LDFLAGS=-llapacke -lgsl -lblas
GSL_PREFIX ?= /usr/local

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows to pass custom GSL paths. Was required when istalling with brew on mac

else
else {
// Ylev[lev-1][i * Ncurrent + j] += (2.0 * double(l) + 1.0) / (4.0 * PI) * legendre(l,Angle);
#ifdef USE_GSL

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call was not encapsulated. LMM suggested the gsl_sf_legendre_PL call. Can you verify that this is correct?

#include<vector>
#include <bits/stdc++.h>
//#include<x86_64-linux-gnu/cblas64_mangling.h>
#include<cmath>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LMM suggested an explicit import of math instead of bits/stdc++.h which works in linux but not in mac

#include <bits/stdc++.h>
//#include<x86_64-linux-gnu/cblas64_mangling.h>
#include<cmath>
#include<gsl/gsl_cblas.h>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LMM suggested that this gsl include is system agnocistc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant