(27 comments)

Making your App depend on another App

When you create a new app with the stork script you get a new application that inherits from MOOSE and all of the physics modules by default, but what if you want to inherit from an existing application? This blog post dives into the details of how you modify you application to do just that!

We highly recommend that you add the application you are branching from as a submodule. This will ensure that update to that application don't surprise you and change the behavior of your tests or simulations without you noticing.

For the purpose of this discussion let's call the application we are branching from "SLUG" and the application that we are creating "ARION" (A specific kind of slug).

Step 1 Adding the dependent app submodule

I'm assuming that you already have your application created (from stork) and cloned locally

$ cd ~/projects/arion
$ git submodule add git@github.com:somename/slug.git

Step 2 Editing the Makefile

Now you need to tell your Makefile about the new application.

# Add these lines to the arion Makefile underneath the existing "modules" area.

# dep apps
SLUG_DIR          ?= $(CURDIR)/slug
APPLICATION_DIR    := $(SLUG_DIR)
APPLICATION_NAME   := slug
include            $(FRAMEWORK_DIR)/app.mk

These lines take advantage of the fact that all MOOSE-based applications look the same and use the same build system. You are telling the Makefile where to find that application and defining a few variables so that the rules in the generic "app.mk" file are adapted specifically for the application you are including.

Step 3 Register the objects in your App and the App itself

Finally you need to update your main "app" file to tell it to use the objects from the dependent application.

# Edit your arion/src/base/ArionApp.C file

#include "SlugApp.h"
#include "SlugSyntax.h"

# in your ArionApp constructor register the app and associate the syntax

SlugApp::registerSyntax(_factory);
SlugApp::associateSyntax(_syntax, _action_factory);

# Finally make sure you register the app itself in registerApps()
SlugApp::registerApps();

That's all there is to it.

Current rating: 5

Comments

bragas calvin klein 1 year, 1 month ago

Any kind of help would be bragas calvin klein really appreciated!|

Link | Reply
Currently unrated

AndreyRix 7 months, 1 week ago

Мужчины и Женщтны Узнайте все о своем здоровье и самым важном аспекте
в своей жизне
физические упражнения для повышения потенции http://levitraviagratab.blogspot.ru/2017/01/blog-post_340.html

Link | Reply
Currently unrated

AndreyRix 7 months ago

импаза действие http://sialiaviagra.blogspot.ru/2017/01/blog-post_63.html

Link | Reply
Currently unrated

GTMatthew 4 months, 3 weeks ago


<a href=http://72moskva.ru/>Жк Москва Тюмень купи квартиру выгодно</a>

Link | Reply
Currently unrated

Geraldvor 1 month, 3 weeks ago

Are you still answering a phone with a cord at house or is your cellular your primary indicates of communications? We reside in the age of the virtual phone. You can live anywhere in the nation and have any region code for your phone number with just a couple of clicks of the mouse. In our workplace we have a mix of everything, my home nearly as a lot.

You can make phone calls from any set place telephone in the United states and in many other nations using AT&T Pay as you go contacting cards. AT&T Prepaid phone cards give you an chance to make inside phone calls and international phone calls. You can use either plastic card or get virtual sms number card.

These are just a few of the many tools and services to help free up your time as a freelance bookkeeper. If you believe about an area of your company to automate, I guarantee you there is probably a tool accessible to do it. It's a make a difference of performing research to find it.

The Wizard of Oz is a great example of what not to do to develop your business. By staying away from some of Oz's key mistakes, you can creative a customer services strategy that will advantage your business.

What actions has the provider taken to ensure you don't experience any interruptions in the quality of your service? You don't have to know a great deal of technical jargon or comprehend how the back finish of your digital telephone service works to discover out if a supplier is correct for you. All you require to know is whether or not they have taken the steps to make certain your services steady. A provider that is severe about supplying quality and reliable service will have taken the actions to make sure there are redundant systems and back ups just in case they have problems with their servers and gear.

With the texting API facility, you can attain throughout to a number of recipients with just 1 SMS. You do not have to pay additional charges for utilizing the SMS gateway.


http://mis-profesionales.es/foro/index.php?topic=2434.0

Link | Reply
Currently unrated

JameserTound 3 weeks, 1 day ago

Antibiotics for ear infection in adults - people.antibioticsonlinehelp.com
Sensitivity infections may be more run-of-the-mill in children than in adults, but grown-ups are silence susceptible to these infections. Distinguishable from childhood regard infections, which are time after time minor and pass apace, adult taste infections are repeatedly signs of a more serious salubrity problem.
If you’re an full-grown with an notice infection, you should the score with fusty attention to your symptoms and consort with your doctor.
<a href="http://people.antibioticsonlinehelp.com/side-effects-of-antibiotics/uti-antibiotics-guidelines.php">uti antibiotics guidelines</a>
<a href="http://people.antibioticsonlinehelp.com/side-effects-of-antibiotics/antibiotics-for-acne-treatment.php">antibiotics for acne treatment</a>
<a href="http://people.antibioticsonlinehelp.com/amoxil-generic/reciprocidad-inca.php">reciprocidad inca</a>
<a href="http://people.antibioticsonlinehelp.com/benicar-generic/motor-vdw-reciproc-silver.php">motor vdw reciproc silver</a>
<a href="http://people.antibioticsonlinehelp.com/side-effects-of-antibiotics/antibiotics-classification-according-to-spectrum.php">antibiotics classification according to spectrum</a>

A centre taste infection is also known as otitis media. It’s caused past flexible trapped behind the eardrum, which causes the eardrum to bulge. Along with an earache, you may sense fullness in your ear and maintain some vapour drainage from the pretended ear.
Otitis media can fall with a fever. You may also take discommode hearing until the infection starts to clear.
http://ru.airticketbooking.top

Link | Reply
Currently unrated

adult 2 weeks, 3 days ago

https://123boot.pro/

Link | Reply
Currently unrated

JesminLinda 10 months, 2 weeks ago

Any kind of help would be bragas calvin klein really appreciated!|

Link | Reply
Currently unrated

uk.bestessays 10 months, 2 weeks ago

Many developers do not know how to make the appropriate coding for a specific project.When a person follows these steps by steps, they will become successful to make the desired app.Would you please let us know about the whole methods for coding the appropriate ways?

Link | Reply
Currently unrated

Boarding School in NCR 7 months, 1 week ago

A school is only a place where child develops physically and mentally by doing physical and mental exercise. Apart from this a child learns cooperation, coordination, understanding and also develops various skills in other fields.

Link | Reply
Currently unrated

Engineering college in Chandigarh 7 months, 1 week ago

Engineering as a subject combines mathematics, logic and science to find solutions to our daily life problems. Over the last few decades, engineering as a profession has seen vast expansion.

Link | Reply
Currently unrated

Zellmeonline456 6 months, 2 weeks ago


I really like this post, I am so excited to read this whole article, This is very nice and so interested, I appreciate your good effort, I get a lot of information to read this brilliant article. Thank you so much for sharing this awesome post. Keep it up

Link | Reply
Currently unrated

die cast light fixtures 6 months, 2 weeks ago

Actually, I am trying to make a new app for the past few days and this is a new idea that working on one app depends on another application. I have gone through the steps that you shared here and got some clear idea about the registration of submodule and other details.

Link | Reply
Currently unrated

z 5 months, 3 weeks ago

a

Link | Reply
Currently unrated

Bihar TET Admit Card 2017 4 months, 2 weeks ago

Many candidates had applied for the TET examination. Now they can get the <a href="https://admitcard09.in/bihar-tet-admit-card-2017-www-bihartet-co-in/">Bihar TET Admit Card 2017</a> through the online

Link | Reply
Currently unrated

Allu Arjun Images 3 months, 2 weeks ago

Get latest New on <a href="http://kajalaggarwalfanclub.com/these-top-10-allu-arjun-images-make-you-fall-in-love-with-him/">Allu Arjun Images</a> check here .

Link | Reply
Currently unrated

check cashing near me 3 months, 2 weeks ago

It may be very onerous to mention once exactly ought to be pressured to cash your test. Usually it's going to extraordinarily tough to cash if it is no longer authentic hours. That’s why we tend to feel you plentiful and services

Link | Reply
Currently unrated

Prabhas Wife 3 months, 1 week ago

If you want to get latest New on <a href="http://tollywoodposts.com/2017/06/09/finally-secret-revealed-who-is-gonna-prabhas-wife//">Prabhas Wife</a> check here .

Link | Reply
Currently unrated

Prabhas Wife 3 months, 1 week ago

nice post keep it up

Link | Reply
Currently unrated

download music paradise pro App to Android 3 months, 1 week ago

Everyone looking for best music downloader for their mobiles like Android or ios whatever it may be, all they need good music app like music paradise which allows them to download online music albums of pop singers without charging any money to them

Link | Reply
Currently unrated

Hotstar Apk 2 months, 2 weeks ago


Hotstar Apk: Hotstar live enables users to watch latest TV shows, live sports & much more. Entertainment plays a major role in every human being life.

Link | Reply
Currently unrated

check cashing 2 months, 2 weeks ago

Honestly preserve in thoughts U.S. And that we can money your check extraordinarily brief amount with a awfully low price.

Link | Reply
Currently unrated

alternatives for lucky patcher 2 months, 1 week ago

alternatives for lucky patcher
http://www.bimfreelance.com/alternatives-for-lucky-patcher/

Link | Reply
Currently unrated

sam 2 months ago

http://yoquotes.org/donald-trump-quotes-sayings-images-pics/

Link | Reply
Currently unrated

Quptes by Tyrion Lannister 2 months ago

nice post..

Link | Reply
Currently unrated

https://www.rprogramminghelp.com/ 2 months ago

Thanx for sharing such useful post keep it up
https://www.rprogramminghelp.com/

Link | Reply
Currently unrated

chcameron 1 month, 1 week ago

thats useful - been looking for this solution for a while - thanks...

Link | Reply
Currently unrated

New Comment

required

required (not published)

optional

R&D 100

Recent Blog Posts

Using our new clang-format Style

6 months, 2 weeks ago

Steady State Algorithm Change

1 year, 3 months ago

Making an App inherit from an App

1 year, 3 months ago

Changing a published API (Deprecation)

1 year, 4 months ago

DiscreteMaterial Objects

1 year, 6 months ago

Recent Posts

Archive

2017
2016
2015
2014

Tags

Authors

Feeds

RSS / Atom