forked from 3rdparty/wrf-python
10 changed files with 1485 additions and 88 deletions
@ -1,5 +1,15 @@
@@ -1,5 +1,15 @@
|
||||
cd ./fortran |
||||
CALL gfortran -E ompgen.F90 -cpp -fopenmp -o omp.f90 |
||||
REM Wildcards not working on Windows for some reason |
||||
CALL f2py -m _wrffortran -h wrffortran.pyf --overwrite-signature wrf_constants.f90 wrf_testfunc.f90 wrf_user.f90 rip_cape.f90 wrf_cloud_fracf.f90 wrf_fctt.f90 wrf_user_dbz.f90 wrf_relhl.f90 calc_uh.f90 wrf_user_latlon_routines.f90 wrf_pvo.f90 eqthecalc.f90 wrf_rip_phys_routines.f90 wrf_pw.f90 wrf_vinterp.f90 wrf_wind.f90 omp.f90 |
||||
cd .. |
||||
|
||||
cd build_scripts |
||||
CALL win_msvc_mingw_omp.bat |
||||
IF %ARCH% == 64 ( |
||||
CALL %PYTHON% setup.py config_fc --f90flags="-O2 -mtune=generic -fopenmp" build_ext --libraries="gomp" build --compiler=msvc --fcompiler=gnu95 |
||||
) ELSE ( |
||||
CALL %PYTHON% setup.py config_fc --f90flags="-O2 -mtune=generic -fopenmp -mincoming-stack-boundary=2" build_ext --libraries="gomp" build --compiler=msvc --fcompiler=gnu95 |
||||
) |
||||
|
||||
CALL %PYTHON% setup.py install --single-version-externally-managed --record=record.txt |
||||
|
||||
|
||||
|
@ -1,6 +1,16 @@
@@ -1,6 +1,16 @@
|
||||
#!/bin/bash |
||||
|
||||
cd build_scripts |
||||
sh gnu_omp.sh |
||||
cd ./fortran |
||||
gfortran -E ompgen.F90 -fopenmp -cpp -o omp.f90 |
||||
f2py *.f90 -m _wrffortran -h wrffortran.pyf --overwrite-signature |
||||
cd .. |
||||
|
||||
if [ `uname` == Darwin ]; then |
||||
LDFLAGS="$LDFLAGS -undefined dynamic_lookup -bundle" |
||||
fi |
||||
|
||||
$PYTHON setup.py config_fc --f90flags="-mtune=generic -fopenmp" build_ext --libraries="gomp" build |
||||
|
||||
$PYTHON setup.py install --single-version-externally-managed --record=record.txt |
||||
|
||||
|
||||
|
Loading…
Reference in new issue