Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build lagrit under windows and MSVC/IFORT #273

Open
jbensabat opened this issue Jan 1, 2025 · 1 comment
Open

build lagrit under windows and MSVC/IFORT #273

jbensabat opened this issue Jan 1, 2025 · 1 comment

Comments

@jbensabat
Copy link

Hello
I have built lagrit under windows with MSVC/IFORT, using the lagrit-windows distribution.
When I try to run the executable - calling the initlagrit
partname='global_lg'
number_of_globals=7
call mfindbk('global_name',partname,ipglobal_name,len,ierror)

i get ierror =-16

because calling
call mm_index_by_name (aname, pname, index)
returns index =0
inside mm_index_by_name

  subroutine mm_index_by_name (aname, pname, index)

  implicit none

  character*(*) aname, pname
  integer index ,i

  include 'mm2000.h'

  index = first
  do i=1,100000000
    if (index .lt. 1) then
      index = 0
      return
    end if
    if (aname .eq. ad_name(1,index) .and.
 &      pname .eq. ad_name(2,index)) return
    index = link(index)
  end do

  return
  end

the variable first is equal to zero and this is what causes the problem

where is "first" initialized ?

best
jac

@millerta
Copy link
Collaborator

millerta commented Jan 6, 2025 via email

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

No branches or pull requests

2 participants