program test_loc
implicit none
print *, findloc([.true., .false., .true.], .false.)
end program test_loc

Oh, nvfortran, why do you have to give me "0: FINDLOC: unimplemented for data type".
#fortran #f90 #nvhpc

ガンダムF90のガンプラ「MG」関連アイテムが一挙再販!ミッションパック「Fタイプ&Mタイプ」「Cタイプ&Tタイプ」やロールアウトカラーとなる2号機がセットの「Nタイプ」など2026年6月発送分がプレミアムバンダイにて予約受付中!
https://hobby.dengeki.com/news/2959889/

#hobby_dengeki #BANDAI_SPIRITS_ホビーディビジョン #ガンダム_ガンプラ #ガンプラ #プレミアムバンダイ #機動戦士ガンダム #MG #マスターグレード #F90 #Fタイプ #Mタイプ #Cタイプ #Tタイプ #Nタイプ #2号機 #ロールアウトカラー #F90IIIY #クラスターガンダム

ガンダムF90のガンプラ「MG」関連アイテムが一挙再販!ミッションパック「Fタイプ&Mタイプ」「Cタイプ&Tタイプ」やロールアウトカラーとなる2号機がセットの「Nタイプ」など2026年6月発送分がプレミアムバンダイにて予約受付中! | 電撃ホビーウェブ

ガンダムF90のガンプラが一挙再販!「ガンダムF90」「ミッションパック Fタイプ&Mタイプ」「ミッションパック Cタイプ&Tタイプ」「ガンダムF90 Nタイプ」「F90IIIY クラスターガンダム」の2026年6月発送分が予約受付中!

電撃ホビーウェブ

Storage Fault Analysis: EG4

EG4 18KPV Fault F90: Phase Sequence Detection Failed

#EG4 #18KPV #F90

🔍 Full Report: https://www.storagefaults.com/eg4/18kpv/eg4-18kpv-fault-f90-phase-sequence-error

EG4 18KPV Fault F90: Phase Sequence Detection Failed -... | storagefaults.com

EG4 18KPV inverter error F90 indicates a phase sequence problem. Troubleshoot grid connection, wiring, and frequency. Requires a qualified electrician.

storagefaults.com

If an allocated allocatable array goes out of scope, it's automatically deallocated, right?
And that should apply to block?

Here's my test program. I think this is legal (compiler doesn't complain):

program test_block
implicit none
integer :: i
do i=1,4
block
real, allocatable, dimension(:) :: my_arr
allocate(my_arr(10))
end block
end do
end program test_block

#Fortran #f90

Calling Modern Fortran & MPI fans/lawyers.
What happens if I call MPI_Send / MPI_Recv on a non-contiguous chunk of an array?

I have (where sbuf is a 2D send-buffer array):

MPI_Send(sbuf(ix:ix+nelems-1, :), nelems*ncolumns, ...)

And very similar for receiving. Is this:
legal? bad?

#Fortran #F90 #MPI #HPC

Dear fellow Fortran nerds!

Is there an equivalent way to do something like this numpy code without using a loop? Performance is not critical.

term1 = np.sum(
n_pic[:,mask] * charge[None, mask], axis=1
)

I see 2 problems here.
a) broadcasting a 2D array (n,m) with a 1D array (m)
b) the mask= option of Fortran's sum must(??) take an array the same shape as the summed array. Is there any way to say "this 1D mask should apply in the 2nd dimension?"

#Fortran #F90

1/2

Attention Fortran lawyers!

A colleague posed an interesting one to me (assuming b is a 2D real array containing values):
OK:
real, dimension(:), allocatable :: a
a = b(1, :)

Error:
real, dimension(:), allocatable :: a
a = sum(b(2:,:), dim=1)
! (can fixed by allocating a)

Is there a rule about automatic allocation requiring no temporaries? Or compiler bug (in either case?)

#f90 #fortran #HPC

*surely* there's some kind of shortcut to avoid counting letters in a Fortran constant string?

```
character(len=*), param :: mystring = "this is my string"
```
Why it this not legal?? Is the language so mean that I have to count and input the `len=`?

#Fortran #F90

Switching (conditionally) some MPI code from f90 to f08 bindings, and came across the following problem:
`if(comm_assembly /= MPI_COMM_NULL) then`

Does this really have to become:
`if(comm_assembly%MPI_VAL /= MPI_COMM_NULL%MPI_VAL) then`?
the original code throws a linktime error (.ne. not being overloaded) -- gcc/14 + impi/2021.11.

Feels like the original code should have been correct. Implementation error?

#HPC, #MPI, #F90, #Fortran