Skip to Content.

mget-help - RE: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull"

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


RE: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull"


Chronological Thread 
  • From: Jason Roberts <>
  • To: "Benjamin Best (bbest)" <>, "" <>
  • Cc: Stephanie Gad <>, "" <>
  • Subject: RE: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull"
  • Date: Thu, 2 Jun 2016 19:22:48 +0000
  • Accept-language: en-US
  • Authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=duke.edu;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

Hey Ben and Stephanie,

 

Thanks for giving the new larval dispersal code a try. That error is most likely a bug in the tool. I looked at the code but can’t figure it out without more information. Could you please send me the entire G:\Steph\Modeling\Simulation directory as a zip file? It will probably be too big to send through email. Please use dropbox or a similar service.

 

Here are some hints:

 

The Time Step you are using, 0.037931 hours, is a strange value (where did it come from?) and very small relative to what you actually need to run the simulation. This is indicated by the stability condition 0.029463 being much smaller than 1/sqrt(2). By having it so small, the numerical calculations will be ultra-stable but the simulation will take an inordinately long time to execute. Try increasing it to 0.5. If the tool issues a warning saying the simulation might not be stable, decrease it to 0.25.

 

Next, set the Summarization Period to something other than 24. You should adjust it based on the Time Step; see the documentation and the blog post for details. You probably want summaries to be produced every 12 or 24 hours. To do that, if your Time Step is 0.25, you should set the Summarization Period to 48 or 96, respectively.

 

There’s a chance that when you adjust the Time Step to something larger, the bug will go away. Please send me the simulation directory anyway, if it’s not too much trouble. The error still probably indicates a bug in the tool. Even if it is caused by the very small time step, the tool should still not fail with this error.

 

Best,

Jason

 

From: [mailto:] On Behalf Of Ben Best
Sent: Thursday, June 2, 2016 1:07 PM
To:
Cc: Stephanie Gad <>;
Subject: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull"

 

CC: Stephanie Gad, GRAYSREEF

 

Hi Jason,

 

A Bren School master's group project is evaluating the connectivity of Gray's Reef National Marine Sanctuary. Andre turned them onto the Schill et al (2015) paper and they're diving in now with your latest in progress tutorial New larval connectivity modeling tools. I helped them get setup with all the dependencies, including Matlab runtime component and now they're running into the following error using the tutorial data:

 

python.exe: RuntimeError: ??? Undefined function or variable "ULfull".

 

Any tips? I tried replacing the Matlab script:

 

C:\Python27\ArcGIS10.3\Lib\site-packages\GeoEco\Matlab\FunctionsMatlab_mcr\build\src\GeoEco\Matlab\Functions.matlab\DisperseLarvae2012.m

 

with the newer:

 

 

but the C:\ location seems to need a compiled version, since it complains of version information not bein embedded.

 

Any other tips?

 

Thanks very much, Ben

 

PS Model of tools exported as model.py attached for parameter reference.

 

PPS Rest of error message below....

 

Executing (Run Larval Dispersal Simulation (2012 Algorithm)): LarvalDispersalRunSimulation2012 G:\Steph\Modeling\Simulation G:\Steph\Modeling\ResultsDirectory "9/20/2011 1:57:50 PM" 3 0.037931 24 # # 0.8 false # # # 50

Start Time: Thu Jun 02 09:49:06 2016

Running script LarvalDispersalRunSimulation2012...

Reading habitat patch data...

Reading 8 ocean currents images...

Finished reading: 0:00:00 elapsed, 8 images read, 0:00:00.060375 per image.

The stability condition is 0.029463, which is less than or equal to 2 ^ -1/2 = 0.707106. The simulation will be numerically stable.

Simulating larval dispersal for 44 larval source patches...

python.exe: RuntimeError: ??? Undefined function or variable "ULfull".

python.exe:

python.exe: Error in ==> DisperseLarvae2012 at 449

The following consequences resulted from the original error:

Execution of C:\Python27\ArcGIS10.3\python.exe failed.

Failed script LarvalDispersalRunSimulation2012...

 

Traceback (most recent call last):

  File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\LarvalDispersalRunSimulation2012.py", line 5, in <module>

    ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.Connectivity.LarvalDispersal', 'LarvalDispersal', 'RunSimulation2012')

  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\ArcGISScripts.py", line 210, in ExecuteMethodFromCommandLineAsArcGISTool

    exec sourceCode in globals(), locals()

  File "<string>", line 1, in <module>

  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Connectivity\LarvalDispersal.py", line 1089, in RunSimulation2012

    maxRunTime=None)

  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\DataManagement\Processes.py", line 575, in ExecuteProgram

    process.Execute()

  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\DataManagement\Processes.py", line 498, in Execute

    Logger.RaiseException(RuntimeError(_(u'%(name)s returned exit code %(code)i, indicating failure.') % {u'name' : programName, u'code' : self.ExitCode}))

  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Logging.py", line 104, in RaiseException

    raise exception

RuntimeError: python.exe returned exit code 1, indicating failure.

 

Failed to execute (Run Larval Dispersal Simulation (2012 Algorithm)).

Failed at Thu Jun 02 09:49:09 2016 (Elapsed Time: 3.42 seconds)

 




Archive powered by MHonArc 2.6.19.

Top of Page