Welcome, Guest
Username: Password: Remember me

TOPIC: Program Exception - access violation

Program Exception - access violation 13 years 7 months ago #1326

  • Alexis B
  • Alexis B's Avatar
Hello,

I am trying to force my model with velocities from a bigger model.
I get an error message like:

" Program Exception -access violation"

when reading my conlim file.

**This latter is set as :

LIHBOR=4
LIUBOR=6
LIVBOR=6
LITBOR=4
(the others been set to zero)

**In my bord.f I say:

DO K=1,NPTFR
IF(LIUBOR(K).EQ.KENTU) THEN
UBOR(K)=...(from formatted file 26)
VBOR(K)=...
U%R(NBOR(K))=UBOR(K)
V%R(NBOR(K))=VBOR(K)

** In my steering file I have tried setting:

VELOCITY PROFILES =2

My program ran when he had to read HBOR (LIHBOR=5) but in this case I had others troubles due to calculations of velocities from free surface (stong and spurious velocities).

If anyone see where I did something wrong, his help will be very much appreciated.

Best regards.

-Alexis
The administrator has disabled public write access.

Re:Program Exception - access violation 13 years 7 months ago #1327

  • jmhervouet
  • jmhervouet's Avatar
Hello Alexis,

How do you see it happens when reading the conlim file (subroutine leclim)?

Reading this file is done before calling bord, so what you do in bord should not be linked to a crash in subroutine leclim.

If it crashes in bord, you would have to look at the way you open and read file 26.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

Re:Program Exception - access violation 13 years 7 months ago #1333

  • Alexis B
  • Alexis B's Avatar
Jean Michel,

I am sorry I did not explain my issue clearly yesterday.
I detected my crash happens where it reads my conlim file because (i) it doesn't go into bord.f (ii) it works 'OK' when using a 5 4 4 4 conlim file.

I specified my fortran and steering file settings in my precedent mail to show and check if my procedure imposing velocities was right.

I thank you a lot for your assistance.

With best regards,

-Alexis

(PS: I did not find the leclim in the sources)
The administrator has disabled public write access.

Re:Program Exception - access violation 13 years 7 months ago #1336

  • jmhervouet
  • jmhervouet's Avatar
Hello Alexis,

Leclim is in the library bief.

Regards, JMH
The administrator has disabled public write access.

Re:Program Exception - access violation 13 years 7 months ago #1338

  • Alexis B
  • Alexis B's Avatar
I am sorry Jean-Michel, my conlim and geo files did not have the same number of points.

I beg your pardon!

-Alexis
The administrator has disabled public write access.

Re:Program Exception - access violation 13 years 7 months ago #1340

  • jmhervouet
  • jmhervouet's Avatar
Hello Alexis,

Hum, this is something we could easily check, generally it gives some default of logic when building the data structure, but I have never seen a crash. I'll try to see what I can do.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.