Hello,
I downloaded AEM3D last week, and I'm running a lake water quality simulation. Everything works fine, until I set "ts_file_timestamp" to anything other than 0 in the run_wq.dat file. Here's the error I get:
forrtl: severe (157): Program Exception - access violation
Image PC Routine Line Source
aem3d.exe 00007FF683BA2C75 AEM3D_WQ_TIME_SER 710 aem3d_time_series_file.f90
aem3d.exe 00007FF683C70EF1 AEM3D_WQ_VAR_MOD_ 507 aem3d_var.f90
aem3d.exe 00007FF683BAD1CD AEM3D_WQ_PHYTO_MO 197 aem3d_phyto.f90
aem3d.exe 00007FF683B94F92 AEM3D_WQ_TIMESTEP 129 aem3d_timestep.f90
aem3d.exe 00007FF683ACA56F AEM3D_WQ_MOD_mp_D 547 aem3d_wq.f90
aem3d.exe 00007FF683AC4BCD AEM3D_TIMESTEP_LO 379 aem3d_timestep_loop.f90
aem3d.exe 00007FF683AB2A25 MAIN__.P 393 aem3d_main.f90
aem3d.exe 00007FF68497D332 Unknown Unknown Unknown
aem3d.exe 00007FF684987CBC Unknown Unknown Unknown
KERNEL32.DLL 00007FFD7CC5E8D7 Unknown Unknown Unknown
ntdll.dll 00007FFD7D57C34C Unknown Unknown Unknown
The aem3d_wq_debug_timestep.txt just stops at whatever timestep I set ts_file_timestep to after the "start phyto" heading but before the "after phytoplankton" heading every time, regardless of the ts_file_timestep value. Other than that, nothing sticks out to me as particularly problematic. The "aem3d_debug.txt" file is clean as a whistle, other than warnings about variables not being simulated and therefore ignored in the datablock file.
I get the same error when I have "write_its_files" set to false.
I get the same error when I run the model in HydroHubLite and through the command prompt. Maybe unrelated, but I'm not able to run createCDsim in HydroHubLite. I've been doing that step in the command prompt, generating the CAEDYM.nc file that way, then jumping back into HydroHubLite. That process seems to work when I'm not using time series.
I get the same error when I delete the old output files and start fresh. Maybe unrelated, but even when I delete the "ncfiles" and "unffiles" directory, I get an error message that these directories already exist. The simulation will still run, however, until it gets to the time series timestep.
I can run the Round Lake example no problem. I basically just copied the "ts_bottom_middle.dat" and "ts_surface_middle.dat" from that example, but I changed the i,j values to the middle-ish of my lake. When I try to just include one time series file at a time, the same error happens for both of them.
I no longer get the error when I change "ts_file_timestep" to "its_file_timestep"; however, this just generates completely blank .csv outfiles in the "tsfiles/ITS" directory, without any headings or anything. Again, I don't get any errors when I use the "ts_file_timestep" keyword in the Round Lake example.
Any help would be greatly appreciated. Thanks!
Take care,
Jackie