2
$\begingroup$

I wonder wether there is a way to identify an AceFEM session. Some variable with a Hash or the startup time of the current session, which is reset after an SMTInputData[] command. Thanks in advance !

$\endgroup$

1 Answer 1

1
$\begingroup$

Value of SMTSession[[51, 1]] is set to AbsoluteTime[] every time when SMTInputData[] is called. This can be probably used as unique identifier of AceFEM session.

<< AceFEM`;
SMTInputData[];
id = SMTSession[[51, 1]]
(* 3.7204563945580672*10^9 *)

DateString@FromAbsoluteTime@id
(* "Thu 23 Nov 2017 20:06:34" *)

Be aware that this solution is undocumented.

$\endgroup$
1
  • $\begingroup$ Thanks a lot for the quick response Pinti (y) $\endgroup$ Commented Nov 23, 2017 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.