mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 05:37:21 -05:00
Orion Events: Add schedule generation metadata
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "opm/input/eclipse/Deck/DeckRecord.hpp"
|
||||
|
||||
#include <QLocale>
|
||||
#include <QProcessEnvironment>
|
||||
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
@@ -55,7 +56,13 @@ QString RicScheduleDataGenerator::generateSchedule( const RimWellEventTimeline&
|
||||
QString result;
|
||||
|
||||
// Header
|
||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||
QString userName = environment.value( "USERNAME" );
|
||||
if ( userName.isEmpty() ) userName = environment.value( "USER", "unknown" );
|
||||
|
||||
result += "-- Generated by ResInsight\n";
|
||||
result += QString( "-- Timestamp: %1\n" ).arg( QDateTime::currentDateTimeUtc().toString( Qt::ISODateWithMs ) );
|
||||
result += QString( "-- User: %1\n" ).arg( userName );
|
||||
result += "-- Schedule data based on well events\n";
|
||||
result += "--\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user