Uniform load problem

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
hshoar
Posts: 26
Joined: Wed Sep 12, 2012 5:45 am
Location: Sience and Research branch of IAU
Contact:

Uniform load problem

Post by hshoar »

Dear OpenSees experts!
When I want to add a uniform load this error appears:
expected integer but got "-type"
.
.
.
# define GRAVITY -------------------------------------------------------------
pattern Plain 1 Linear {
eleLoad -ele 3 -type -beamUniform -500
}
expected integer but got "-type"
If I write everything in a file and use "source" command to run the analysis, no error appear:-??
I even check one of opensees examples with 2.4.0 and 2.4.3 versions!

Thank you.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Uniform load problem

Post by fmk »

if you do a print you will see the load is added.

it basically has to do with the code to parse a list of integers. basically we keep parsing until the end of line or the interpreter returns an error saying next arg is not an integer. when running on a script we are able to intercept the error message and stop the user from seeing it as there is nothing wrong with the script. when you type it directly we cannot stop the message going to the screen.
Post Reply