Skip to content

Commit

Permalink
Fix for Intel compilers (#254)
Browse files Browse the repository at this point in the history
* docs: add scale_geometry docstring

* Fix OpenMP test script for Intel compilers
  • Loading branch information
msyriac committed Apr 3, 2024
1 parent a5e4470 commit 3a8b6e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pixell/enmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ def slice_geometry(shape, wcs, sel, nowrap=False):
return tuple(pre)+tuple(oshape), wcs

def scale_geometry(shape, wcs, scale):
"""Scale the geometry so that the number of pixels is scaled
by the factor `scale`.
"""
scale = np.zeros(2)+scale
oshape = tuple(shape[:-2])+tuple(utils.nint(shape[-2:]*scale))
owcs = wcsutils.scale(wcs, scale, rowmajor=True)
Expand Down
2 changes: 1 addition & 1 deletion scripts/omp_hello.f90
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
! Hello world test program for fortran.

program example
use, intrinsic :: omp_lib
use :: omp_lib
implicit none

! Set number of threads to use.
Expand Down

0 comments on commit 3a8b6e3

Please sign in to comment.