Skip to main content
FluidEarth Portal Header version 3

FluidEarth Portal

Go Search
  
FluidEarth Portal > FluidEarth Discussions > Two questions  

FluidEarth Discussions

Modify settings and columns
Discussions board for FluidEarth Users
  
View: 
Post
Started: 03/03/2010 22:19
Attachment
Picture: ZZhang
ZZhang
Two questions

Dear,

 

I have two questions as the attachment.
 

If I make you misunderstand, please feel free to contact me.

My email: gulley@163.com

 

I really appreciate if someone can handle these problems for me.

Posted: 07/03/2010 08:34
Picture Placeholder: GGlasgow
GGlasgow
Hi,
 
the first of your issues isn't really a problem - you have compiled your code as 'debug' in visual studio; this 'assertion failed' dialog is your chance to step into the code to debug. there's some advice on this in the manual/guide and if you aren't trying to debug at this time, you can compile your code as 'release' in VS and it shouldn't appear. if you do this and are still having problems, let me know.
i'll put together a sample code that exchanges an array of data that will show you how to solve the second problem. i'll post the code as a second reply.
 
good luck with your wrapping,
 
gordon
Posted: 07/03/2010 17:35
Attachment
Picture Placeholder: GGlasgow
GGlasgow
hi,
 
i've now uploaded a sample 2D model on the development repository (sample_2d_model.zip) for you to take a look at. it doesn't do much, but should show you how i solve this problem.  there's a pdf file in the zip which will hopefully answer your question about exchanging arrays of data, which i've also attached here. it's well worth trying out the code i've uploaded and making sure you understand what the process involves before moving on to your own (more complicated, no doubt) model.
 
if you still have any problems, let me know - i'll look out for any more posts you make here and will try to give you a reply within a day or two. if things are urgent, and it's stopping you from working, feel free to get in touch directly - you should have my contact details from the training event.
 
good luck!
 
gordon
Posted: 15/03/2010 12:37
Picture: ZZhang
ZZhang
Hi Gordon,
 
I have built the code as release vesion, but the assert dialog still appear. And I donot really understand the solution in the manual. After adding a break point, attach to process and then click Ignore button, it doesnot stop at the break point.
If I click "Retry" ,it stop on the line "Debug.Assert(!assert):"(in EngineProxy.cs).
So I donot how to handle this. And I also donot why the Assert dialog comes out.
 


Posted: 15/03/2010 16:57
Picture: ZZhang
ZZhang
Hi,Gordon,
 
I am wondering, if I change the value of argument (Key="OpenWEB_SDK_ArgBool.DebugAttacheEngineInitialise") to "False".

Does it affect the result?
Posted: 15/03/2010 17:46
Attachment
Picture Placeholder: GGlasgow
GGlasgow
hi,
 
yes, you're right; this needs to be set to 'true' to enable you to debug the code. if you're compiling in 'release' and don't want to debug, it should have no effect if it is true or false - so i tend to leave it as 'true' all the time.
 
to me, the fact you can't get rid of the assertion failed dialog suggests there might be an underlying problem with your VS solution; you will need to correct this, as i think you are compiling 'debug' to ..\bin\ but not 'release'. if this is the case, you may be using outdated versions of your dlls, which can become confusing rather quickly.
 
i have put a couple of instructions in the attached pdf to show you how i would check this and also showing you how i debug my FORTRAN code. it is pretty much the same method as Adrian explains in the manual, but perhaps explained slightly differently. it is important to make sure that your breakpoint is somewhere that will definitely be run in your FORTRAN code - if it isn't somewhere that will be run, you will never be able to step into your code.  
 
have a look at the attached pdf and see if it helps - if not, let me know.
 
good luck!
 
gordon