Skip to content

Commit

Permalink
Merge pull request #1083 from edoapra/stdgnu23
Browse files Browse the repository at this point in the history
gcc 15
  • Loading branch information
nwchemgit authored Feb 20, 2025
2 parents 7d6de97 + b6a42fa commit 73c9c4a
Show file tree
Hide file tree
Showing 125 changed files with 305 additions and 833 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,13 @@ jobs:
xcode_version: 15.0.1
- os: macos-latest
experimental: true
mpi_impl: build_mpich
mpi_impl: mpich
armci_network: MPI-TS
nwchem_modules: "nwdft driver solvation"
nwchem_modules: "all"
fc: gfortran-14
cc: gcc-14
blas: "brew_openblas"
blas_size: 4
blas: "build_openblas"
blas_size: 8
fail-fast: false
env:
MPI_IMPL: ${{ matrix.mpi_impl }}
Expand Down
7 changes: 6 additions & 1 deletion src/libext/scalapack/build_scalapa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ VERSION=2.1.0
#COMMIT=ea5d20668a6b8bbee645b7ffe44623c623969d33
COMMIT=5bad7487f496c811192334640ce4d3fc5f88144b
COMMIT=782e739f8eb0e7f4d51ad7dd23fc1d03dc99d240
COMMIT=a23c2cdc6586c427686f6097ae66bb54ef693571
rm -rf scalapack
if [[ -f "scalapack-$COMMIT.tar.gz" ]]; then
echo "using existing" "scalapack-$COMMIT.tar.gz"
Expand All @@ -134,7 +135,7 @@ else
tries=$((tries+1)) ; done
fi
tar xzf scalapack-$COMMIT.tar.gz
ln -sf scalapack-$COMMIT scalapack
ln -sf scalapack-*$COMMIT scalapack
#ln -sf scalapack-${VERSION} scalapack
#curl -L http://www.netlib.org/scalapack/scalapack-${VERSION}.tgz -o scalapack.tgz
#tar xzf scalapack.tgz
Expand Down Expand Up @@ -239,11 +240,15 @@ fi
GOTCLANG=$( "$MPICC" -dM -E - </dev/null 2> /dev/null |grep __clang__|head -1|cut -c19)
if [[ `${MPICC} -dM -E - < /dev/null 2> /dev/null | grep -c GNU` > 0 ]] ; then
let GCCVERSIONGT12=$(expr `${MPICC} -dumpversion | cut -f1 -d.` \> 12)
let GCCVERSIONGT13=$(expr `${MPICC} -dumpversion | cut -f1 -d.` \> 13)
fi

if [[ ${GOTCLANG} == "1" ]] || [[ ${GCCVERSIONGT12} == "1" ]] ; then
C_FLAGS=" -Wno-error=implicit-function-declaration "
fi
if [[ ${GCCVERSIONGT13} == "1" ]] ; then
C_FLAGS+=" -std=gnu17 "
fi
if [[ "$SCALAPACK_SIZE" == 8 ]] ; then
if [[ ${FC} == f95 ]] || [[ ${FC_EXTRA} == gfortran ]] ; then
Fortran_FLAGS+=" -fdefault-integer-8 -w "
Expand Down
10 changes: 5 additions & 5 deletions src/nwpw/nwpwlib/D3dB/olist.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ typedef struct {
int *list;
} OList_Type;

extern void create_olist();
extern void insert_olist();
extern int index_olist();
extern void destroy_olist();
extern void print_olist();
extern void create_olist(OList_Type*, int);
extern void insert_olist(OList_Type*, int);
extern int index_olist(OList_Type*, int);
extern void destroy_olist(OList_Type*);
extern void print_olist(OList_Type*);

#endif
/* $Id$ */
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/becke_exchange.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _Becke_EXCHANGE_H_
#define _Becke_EXCHANGE_H_

extern void R_Becke_Exchange();
extern void R_Becke_Exchange(double *, double *, double *, double *);
#endif
/* $Id$ */
4 changes: 2 additions & 2 deletions src/nwpw/nwpwlib/pseudopotential/cpi_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include "typesf2c.h"
#include "get_word.h"

extern double cpi_Splint();
extern void cpi_Spline();
extern double cpi_Splint(double *, double *, double *, int, int, double);
extern void cpi_Spline(double *, double *, int, double , double , double *, double *);


#if (defined(WIN32)) && !defined(__MINGW32__)
Expand Down
14 changes: 7 additions & 7 deletions src/nwpw/nwpwlib/pseudopotential/dft.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@


extern void init_DFT(char*);
extern double R_Hartree_DFT();
extern void R_Exchange_DFT();
extern void R_Correlation_DFT();
extern void R_Screening_Cut();
extern double R_Hartree_DFT(double *, double, double *);
extern void R_Exchange_DFT(double *, double *, double *, double *);
extern void R_Correlation_DFT(double *, double *, double * , double *);
extern void R_Screening_Cut(double *);



Expand Down Expand Up @@ -56,9 +56,9 @@ extern void R_Screening_Cut();


/* used for setting solver parameters */
extern void set_Hartree_DFT();
extern void set_Exchange_DFT();
extern void set_Correlation_DFT();
extern void set_Hartree_DFT(int);
extern void set_Exchange_DFT(int);
extern void set_Correlation_DFT(int);

extern char *hartree_Name_DFT();
extern char *exchange_Name_DFT();
Expand Down
4 changes: 2 additions & 2 deletions src/nwpw/nwpwlib/pseudopotential/dirac_exchange.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifndef _DIRAC_EXCHANGE_H_
#define _DIRAC_EXCHANGE_H_

extern void set_Dirac_alpha();
extern void set_Dirac_alpha(double);
extern double Dirac_alpha();
extern void R_Dirac_Exchange();
extern void R_Dirac_Exchange(double *, double *, double *, double *);
#endif
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/generate_rho_semicore.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _SEMICORE_H_
#define _SEMICORE_H_

extern void generate_rho_semicore();
extern void generate_rho_semicore(int, double *, double , double *);
#endif
/* $Id$ */
14 changes: 7 additions & 7 deletions src/nwpw/nwpwlib/pseudopotential/get_word.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
#define NIL ((char *) EOF)

extern char *get_word(FILE *stream);
extern int get_line();
extern int to_eoln();
extern int get_int();
extern int get_string();
extern int get_float();
extern int get_end();
extern int remove_blanks();
extern int get_line(FILE *, char *, int);
extern int to_eoln(FILE *);
extern int get_int(FILE *, int *);
extern int get_string(FILE *, char *);
extern int get_float(FILE *, double *);
extern int get_end(FILE *);
extern int remove_blanks(FILE *);


#endif
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/grids.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
author - Eric Bylaska
*/

extern void init_Grids();
extern void init_Grids(int);
extern void end_Grids();
extern double *alloc_Grid();
extern void dealloc_Grid(double*);
Expand Down
7 changes: 5 additions & 2 deletions src/nwpw/nwpwlib/pseudopotential/hamann.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
*/

void Suggested_Param_Hamann();
void solve_Hamann();
void Suggested_Param_Hamann(int *, int *, int *, double *, double *, double *);
void solve_Hamann(int , int *, int *, double *, double *, double *,
double **, double **, double *, double *, double **,
double *, double *, double *, double *, double *, double *, double *,
int *, double **, double **);

#endif
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/hartree.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
*/

extern double R_Hartree();
extern double R_Hartree(double*, double, double *);

#endif
18 changes: 9 additions & 9 deletions src/nwpw/nwpwlib/pseudopotential/loggrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ with the grid points defined by:
*/


extern void init_LogGrid();
extern void init_LogGrid(double);
extern void end_LogGrid();
extern double *alloc_LogGrid();
extern void dealloc_LogGrid();
extern void dealloc_LogGrid(double *);
extern double *r_LogGrid();
extern int N_LogGrid();
extern double log_amesh_LogGrid();
extern double amesh_LogGrid();
extern double Integrate_LogGrid();
extern double Integrate_LogGrid(double *);
extern double Integrate_LogGrid_na_nb(int,int,double*);
extern double Integrate2_LogGrid();
extern void Zero_LogGrid();
extern void Copy_LogGrid();
extern double Norm_LogGrid();
extern void Derivative_LogGrid();
extern double Integrate2_LogGrid(int, double, double *);
extern void Zero_LogGrid(double *);
extern void Copy_LogGrid(double *, double *);
extern double Norm_LogGrid(int, double, double *);
extern void Derivative_LogGrid(double *, double *);
extern void Plot_LogGrid(char*,double*);
extern int index_r_LogGrid();
extern int index_r_LogGrid(double );

#ifdef WIN32
/* Microsoft C does not implement rint */
Expand Down
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/lyp_correlation.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _LYP_H_
#define _LYP_H_

extern void R_LYP_Correlation();
extern void R_LYP_Correlation(double *, double *, double *, double *);
#endif
/* $Id$ */
4 changes: 2 additions & 2 deletions src/nwpw/nwpwlib/pseudopotential/pauli.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

extern void R_Pauli();
extern void R_Pauli_Fixed_E();
extern void R_Pauli(int, int, double ,double *, int *, double *, double *, double *);
extern void R_Pauli_Fixed_E(int, int, double ,double *, int , double , double *, double *);

#endif
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/paw_atom/paw_atom.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void paw_init_atom(char* atom, char *infile)
paw_init_vosko();

/*initialize potential*/
paw_init_potential(Zion);
paw_init_potential();

/*initialize orbitals*/
paw_init_orbitals_from_file(fp);
Expand Down
4 changes: 2 additions & 2 deletions src/nwpw/nwpwlib/pseudopotential/paw_atom/paw_atom.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extern void paw_init_atom(char *aname, char *infile);
extern void paw_solve_atom();
extern void paw_print_atom();

extern double paw_get_ion_energy();
//extern double paw_get_ion_energy();

extern void paw_save_atom();
extern void paw_plot_orbitals();
Expand All @@ -24,7 +24,7 @@ extern double paw_get_atom_total_energy();


extern void paw_init_paw_atom(char *aname);
extern void paw_solve_paw_atom();
extern void paw_solve_paw_atom(char *);
extern void paw_print_paw_atom();


Expand Down
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/paw_atom/paw_basis.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern double* paw_get_pointer_paw_ps_density();
extern double* paw_get_pointer_paw_density();

extern double paw_get_paw_kinetic_energy();
extern double paw_get_r_orbital();
extern double paw_get_r_orbital(int);

extern int paw_get_nbasis();
extern double paw_get_Zvalence();
Expand Down
19 changes: 9 additions & 10 deletions src/nwpw/nwpwlib/pseudopotential/paw_atom/paw_loggrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
$Id$
*/

#include <stdio.h>


extern void paw_init_LogGrid_from_file();
extern void paw_init_LogGrid_from_file(double, FILE *);
extern double paw_r0_LogGrid();
extern double *paw_alloc_LogGrid();
extern void paw_dealloc_LogGrid(double *grid);
Expand All @@ -17,20 +17,19 @@ extern double *paw_scratch_LogGrid();
extern int paw_N_LogGrid();
extern double paw_log_amesh_LogGrid();
extern double paw_amesh_LogGrid();
extern double paw_Integrate_LogGrid();
extern double paw_Def_Integr();
extern void paw_Zero_LogGrid();
extern void paw_Copy_LogGrid();
extern double paw_Integrate_LogGrid(double *);
extern double paw_Def_Integr(double, double *, double, int);
extern void paw_Zero_LogGrid(double *);
extern void paw_Copy_LogGrid(double *, double *);
extern void paw_Copy_spin_LogGrid(double **gridnew, double **gridold);
extern double paw_Norm_LogGrid();
extern void paw_Derivative_LogGrid();
extern double paw_Def_Integr();
extern double paw_Norm_LogGrid(int, double, double *);
extern void paw_Derivative_LogGrid(double *, double *);
extern double* paw_Indef_Integr();
extern double paw_dot_product(double*, double*);
extern double paw_dot_product1(int ,double*, double*);
extern int paw_get_grid_index(double r);
extern int paw_get_grid_index(double r);
extern void paw_print_loggrid_information();
extern void paw_print_loggrid_information(FILE *);
extern double paw_dot_product1(int n, double *f, double *g);

/* this one was missing before */
Expand Down
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/paw_atom/paw_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/


extern void paw_generate_basis_file();
extern void paw_generate_basis_file(char *);

#endif

Expand Down
26 changes: 13 additions & 13 deletions src/nwpw/nwpwlib/pseudopotential/paw_atom/paw_pred_cor.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ formulas for integrating inward and outward.
This file also contains 5th order derivatives.
*/
extern double paw_Predictor_In();
extern double paw_Predictor_Out();
extern double paw_Predictor_Out_F();

extern double paw_Corrector_In();
extern double paw_Corrector_In_F();
extern double paw_Corrector_Out();

extern double paw_Derivative5_1();
extern double paw_Derivative5_2();
extern double paw_Derivative5_3();
extern double paw_Derivative5_4();
extern double paw_Derivative5_5();
extern double paw_Predictor_In(int, double *, double *);
extern double paw_Predictor_Out(int, double *, double *);
extern double paw_Predictor_Out_F(int, double *);

extern double paw_Corrector_In(int, double *, double *);
extern double paw_Corrector_In_F(int, double *);
extern double paw_Corrector_Out(int, double *, double *);

extern double paw_Derivative5_1(int, double *);
extern double paw_Derivative5_2(int, double *);
extern double paw_Derivative5_3(int, double *);
extern double paw_Derivative5_4(int, double *);
extern double paw_Derivative5_5(int, double *);

#endif

Expand Down
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/pbe_correlation.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _PBE96_H_
#define _PBE96_H_

extern void R_PBE96_Correlation();
extern void R_PBE96_Correlation(double *, double *, double *, double *);
#endif
/* $Id$ */
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/pbe_exchange.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _PBE_EXCHANGE_H_
#define _PBE_EXCHANGE_H_

extern void R_PBE96_Exchange();
extern void R_PBE96_Exchange(double *, double *, double *, double *);
#endif
/* $Id$ */
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/perdew_wang.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _PERDEW_WANG_H_
#define _PERDEW_WANG_H_

extern void R_Perdew_Wang();
extern void R_Perdew_Wang(double *,double *,double *,double *);
#endif
/* $Id$ */
2 changes: 1 addition & 1 deletion src/nwpw/nwpwlib/pseudopotential/perdew_zunger.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
#ifndef _PERDEW_ZUNGER_H_
#define _PERDEW_ZUNGER_H_

extern void R_Perdew_Zunger();
extern void R_Perdew_Zunger(double *,double *, double *, double *);
#endif
Loading

0 comments on commit 73c9c4a

Please sign in to comment.