Source Code(Modifications to sim:program=laser-pulse)

84 views
Skip to first unread message

Peela baradwaj naidu

unread,
Nov 1, 2024, 12:36:57 AM11/1/24
to Vampire Users
Hello everyone,
I hope everyone is having a great weekend.
I wanted to ask about sim:program=laser-pulse. However, I couldn't find a program with a namespace laser-pulse.cpp, However, I made some changes to temperature_pulse.cpp in /src, to simultaneously initialize a two-temperature model and an applied-field pulse. However, after copying the necessary lines from field_pulse.cpp to  temperature_pulse.cpp
I still don't see an applied-field pulse. I am attaching my input file and  temperature_pulse.cpp. I would greatly appreciate any help.
Screenshot 2024-10-31 233544.png

temperature_pulse.cpp
input0

Richard Evans

unread,
Nov 1, 2024, 4:14:52 AM11/1/24
to Peela baradwaj naidu, Vampire Users
Hi Peela,

This looks like it should work - did you definitely recompile before rerunning the code?

Cheers,

Richard

<Screenshot 2024-10-31 233544.png>


--
You received this message because you are subscribed to the Google Groups "Vampire Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vampire-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vampire-users/2c544c34-ae31-4408-9ac9-bf416a7c0ba5n%40googlegroups.com.
<temperature_pulse.cpp><input0><Screenshot 2024-10-31 233544.png>

Peela baradwaj naidu

unread,
Nov 1, 2024, 3:30:18 PM11/1/24
to Vampire Users
Hello Dr. Richard,
Thanks for your comments. Indeed, I did not recompile it correctly. There was also an issue with initialising variables since some "time variables" from field pulse need not be redeclared in temperature_pulse.cpp. I  performed make clean and recompile the code. However, I am not able to resolve this error. I am not an expert in C++ so any advice is appreciated.
Regards,
ThankYou.
Picture1.png

gabo...@gmail.com

unread,
Nov 2, 2024, 1:03:04 PM11/2/24
to Vampire Users
Commit fd9de813cab95bc2b2837122bd03f0238a5d2d76 of field_pulse.cpp [1] has:

line 22: // program module headers
line 23: #include "internal.hpp" // Based on the message error: 'internal' is not a namespace-name, you might be missing this include line.

line 25: // namespace abbreviation for brevity
line 27: namespace pgi = program::internal;


Kind Regards,
Gavin
VAMPIRE user
Reply all
Reply to author
Forward
0 new messages